aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/loadstor.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-23 01:41:23 +0000
committerlloyd <[email protected]>2009-12-23 01:41:23 +0000
commit887f2afa7628d88daef361ca00188edd4d882f6d (patch)
treeb74956f1a93f00db76bdbbe036534eaa2f1208eb /src/utils/loadstor.h
parent51b3e9a653af23c00efc27c05045a74211e7fd5c (diff)
Add a static_cast<byte>() around get_byte just to keep VC++ quiet.
Diffstat (limited to 'src/utils/loadstor.h')
-rw-r--r--src/utils/loadstor.h4
1 files changed, 3 insertions, 1 deletions
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<typename T> inline byte get_byte(u32bit byte_num, T input)
{
- return (input >> ((sizeof(T)-1-(byte_num&(sizeof(T)-1))) << 3));
+ return static_cast<byte>(
+ input >> ((sizeof(T)-1-(byte_num&(sizeof(T)-1))) << 3)
+ );
}
/*