From 13a8eef2200f23a94d29b110e9ee5745f4e454f3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 14 Feb 2018 21:45:57 -0800 Subject: Minor update --- Platforms/Basic/interface/BasicPlatformMisc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platforms/Basic/interface/BasicPlatformMisc.h b/Platforms/Basic/interface/BasicPlatformMisc.h index 2e753991..40c6db2a 100644 --- a/Platforms/Basic/interface/BasicPlatformMisc.h +++ b/Platforms/Basic/interface/BasicPlatformMisc.h @@ -32,7 +32,7 @@ struct BasicPlatformMisc if( Val == 0 )return 32; Diligent::Uint32 MSB = 31; - while( !(Val & (1 << MSB)) ) + while( !(Val & (1u << MSB)) ) --MSB; return MSB; @@ -43,7 +43,7 @@ struct BasicPlatformMisc if( Val == 0 )return 32; Diligent::Uint32 LSB = 0; - while( !(Val & (1 << LSB)) ) + while( !(Val & (1u << LSB)) ) ++LSB; return LSB; -- cgit v1.2.3