Bläddra i källkod

compiler warnings

David Rose 15 år sedan
förälder
incheckning
f58c5b591b
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      direct/src/plugin/p3dPackage.cxx

+ 3 - 3
direct/src/plugin/p3dPackage.cxx

@@ -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