Permalink
Browse files

Use a single cast that will cascade

  • Loading branch information...
1 parent 0aec64c commit f25384ae0987259d1639df7364fd1ae7a4d6f865 @cmr cmr committed Dec 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ms.c
View
@@ -21,12 +21,12 @@
// milliseconds
-#define MS_SEC 1000
+#define MS_SEC (long long)1000
#define MS_MIN 60 * MS_SEC
#define MS_HOUR 60 * MS_MIN
#define MS_DAY 24 * MS_HOUR
#define MS_WEEK 7 * MS_DAY
-#define MS_YEAR 52 * (long long)MS_WEEK
+#define MS_YEAR 52 * MS_WEEK
/*
* Convert the given `str` representation to microseconds,

0 comments on commit f25384a

Please sign in to comment.