From 887f2afa7628d88daef361ca00188edd4d882f6d Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 23 Dec 2009 01:41:23 +0000 Subject: Add a static_cast() around get_byte just to keep VC++ quiet. --- src/utils/loadstor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/loadstor.h b/src/utils/loadstor.h index 256a6f849..bd2acc87d 100644 --- a/src/utils/loadstor.h +++ b/src/utils/loadstor.h @@ -42,7 +42,9 @@ namespace Botan { */ template inline byte get_byte(u32bit byte_num, T input) { - return (input >> ((sizeof(T)-1-(byte_num&(sizeof(T)-1))) << 3)); + return static_cast( + input >> ((sizeof(T)-1-(byte_num&(sizeof(T)-1))) << 3) + ); } /* -- cgit v1.2.3