lottie/vector: remove a warning message from 64 bits compilation 80/185380/1
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 30 Jul 2018 05:48:28 +0000 (14:48 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Mon, 30 Jul 2018 05:48:28 +0000 (14:48 +0900)
uint64_t is same as unsigned long long in 32 bits compilation.
But, it is same as unsigned long in 64 bits compilation.

Change-Id: Ibcddaf17d1fa1f6c972906f6571c05253292b752

src/vector/vdebug.cpp

index 47db2eb..3b42ea2 100644 (file)
@@ -32,7 +32,7 @@ void format_timestamp(std::ostream& os, uint64_t timestamp)
     char        buffer[32];
     strftime(buffer, 32, "%Y-%m-%d %T.", gmtime);
     char microseconds[7];
-    sprintf(microseconds, "%06llu", timestamp % 1000000);
+    sprintf(microseconds, "%06llu", (long long unsigned int)timestamp % 1000000);
     os << '[' << buffer << microseconds << ']';
 }