mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
compiler warnings
This commit is contained in:
parent
294e536d65
commit
f58c5b591b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user