From 15b46e94a343814b2bb47ed0a9ef0fbcb03ff6b2 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 31 May 2005 09:46:54 +0000 Subject: [PATCH] Fixed signed/unsigned comparison warnings. [SVN r29318] --- test/config_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/config_info.cpp b/test/config_info.cpp index 29005ea2..9003e9c8 100644 --- a/test/config_info.cpp +++ b/test/config_info.cpp @@ -70,10 +70,10 @@ template void print_byte_order(const char* what, T /* t */ ) { T val = 0; - T i; + unsigned i; for(i = 1; i < sizeof(T); ++i) { - val |= (CHAR_BIT * i) << (CHAR_BIT * i); + val |= (CHAR_BIT * static_cast(i)) << (CHAR_BIT * static_cast(i)); } const char* p = reinterpret_cast(&val);