Fix up current time computation (ensure 64-bit math is used).
[bluesky.git] / inode.c
diff --git a/inode.c b/inode.c
index b9da798..4437c04 100644 (file)
--- a/inode.c
+++ b/inode.c
@@ -21,7 +21,7 @@ int64_t bluesky_get_current_time()
 {
     GTimeVal t;
     g_get_current_time(&t);
-    return t.tv_sec * 1000000 + t.tv_usec;
+    return (int64_t)t.tv_sec * 1000000 + t.tv_usec;
 }
 
 /* Unfortunately a glib hash table is only guaranteed to be able to store