Skip to content

Commit 13a8eef

Browse files
Minor update
1 parent 66b3b5f commit 13a8eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Platforms/Basic/interface/BasicPlatformMisc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct BasicPlatformMisc
3232
if( Val == 0 )return 32;
3333

3434
Diligent::Uint32 MSB = 31;
35-
while( !(Val & (1 << MSB)) )
35+
while( !(Val & (1u << MSB)) )
3636
--MSB;
3737

3838
return MSB;
@@ -43,7 +43,7 @@ struct BasicPlatformMisc
4343
if( Val == 0 )return 32;
4444

4545
Diligent::Uint32 LSB = 0;
46-
while( !(Val & (1 << LSB)) )
46+
while( !(Val & (1u << LSB)) )
4747
++LSB;
4848

4949
return LSB;

0 commit comments

Comments
 (0)