Fix some mysql code issues.
authorNathan Binkert <binkertn@umich.edu>
Fri, 21 Jan 2005 16:29:19 +0000 (11:29 -0500)
committerNathan Binkert <binkertn@umich.edu>
Fri, 21 Jan 2005 16:29:19 +0000 (11:29 -0500)
base/stats/events.cc:
    cast this to an unsigned long long to make the compiler happy
    on 64-bit platforms.

--HG--
extra : convert_revision : e893d21bb228cbfb0c23adb7c4eeb1f62209ca1c

base/stats/events.cc

index e5efceabebd7747e0c692245995ce44c15dc41d1..d716fa4d3e651f3c4b5f0d8d18ba8180f0abd66e 100644 (file)
@@ -134,7 +134,7 @@ InsertEvent::insert(const string &stat)
     first = false;
 
     size += sprintf(query + size, "(%u,%u,%llu)",
-                    event, run, curTick);
+                    event, run, (unsigned long long)curTick);
 }
 
 void