diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-15 05:45:57 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-15 05:45:57 +0000 |
| commit | 13a8eef2200f23a94d29b110e9ee5745f4e454f3 (patch) | |
| tree | 766e9329aeda43dd5d6d2f1972376f7fc53d8866 | |
| parent | Fixed formatting of cmake files + couple of minor updates (diff) | |
| download | DiligentCore-13a8eef2200f23a94d29b110e9ee5745f4e454f3.tar.gz DiligentCore-13a8eef2200f23a94d29b110e9ee5745f4e454f3.zip | |
Minor update
| -rw-r--r-- | Platforms/Basic/interface/BasicPlatformMisc.h | 4 |
1 files 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; |
