compiler warnings

This commit is contained in:
David Rose 2010-05-07 22:59:08 +00:00
parent 294e536d65
commit f58c5b591b

View File

@ -238,19 +238,19 @@ mark_used() {
int count = 0; int count = 0;
xusage->Attribute("count_runtime", &count); xusage->Attribute("count_runtime", &count);
if (count == 0) { if (count == 0) {
xusage->SetAttribute("first_use", now); xusage->SetAttribute("first_use", (int)now);
} }
++count; ++count;
xusage->SetAttribute("count_runtime", count); xusage->SetAttribute("count_runtime", count);
xusage->SetAttribute("last_use", now); xusage->SetAttribute("last_use", (int)now);
if (_updated) { if (_updated) {
// If we've updated the package, we're no longer sure what its // If we've updated the package, we're no longer sure what its
// disk space is. Remove that from the XML file, so that the // disk space is. Remove that from the XML file, so that the
// Python code can recompute it later. // Python code can recompute it later.
xusage->RemoveAttribute("disk_space"); xusage->RemoveAttribute("disk_space");
xusage->SetAttribute("last_update", now); xusage->SetAttribute("last_update", (int)now);
} }
// Write the file to a temporary filename, then atomically move it // Write the file to a temporary filename, then atomically move it