summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-08-17 15:25:39 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:35 -0700
commit3461048d5af6f909151e23d51384e50e25e035a5 (patch)
treeb6cf52f37548e09c2a3cccb2a4827c773a6942e8 /lib
parentc27dbdf19410ed89da0b73995a219999f029d624 (diff)
CHROMIUMOS: tidy msleep cast
BUG=chromium-os:19353 TEST=build for Seaboard Change-Id: Iba1da73cdd5a8e3972240e939a40ee4a32e83786 Reviewed-on: http://gerrit.chromium.org/gerrit/6252 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/vbexport/utility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vbexport/utility.c b/lib/vbexport/utility.c
index d59ecd2e62..bdc578acc8 100644
--- a/lib/vbexport/utility.c
+++ b/lib/vbexport/utility.c
@@ -23,7 +23,7 @@
#define UINT32_MAX (~0UL)
#define TICKS_PER_MSEC (CONFIG_SYS_HZ / 1000)
-#define MAX_MSEC_PER_LOOP ((UINT32_MAX / TICKS_PER_MSEC) / 2)
+#define MAX_MSEC_PER_LOOP ((uint32_t)((UINT32_MAX / TICKS_PER_MSEC) / 2))
#ifndef CACHE_LINE_SIZE
#define CACHE_LINE_SIZE __BIGGEST_ALIGNMENT__