From a866c1420aa9901e3461f7dd45d4dd16eaf1fad5 Mon Sep 17 00:00:00 2001 From: Masahide NAKAMURA Date: Sat, 14 Jul 2007 09:20:39 +0900 Subject: [PATCH] [BUGFIX] VT: Fix compiler warning on 64bit machine. --- src/vt.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vt.c b/src/vt.c index f5152cc..08981b7 100644 --- a/src/vt.c +++ b/src/vt.c @@ -684,7 +684,7 @@ static int bcache_vt_dump(void *data, vo static int vt_str_to_uint32(const struct vt_handle *vh, const char *str, uint32_t *val) { - uint32_t v; + long int v; char *ptr = NULL; v = strtoul(str, &ptr, 0); @@ -697,7 +697,7 @@ static int vt_str_to_uint32(const struct return -ERANGE; } - *val = v; + *val = (uint32_t)v; return 0; } -- 1.4.3.GIT