mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 00:17:40 +00:00
Fixed declaration-after-statement warning
This commit is contained in:
parent
6ad7fdecce
commit
53e685168d
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,9 @@ int SDL_powerof2(int x)
|
|||
}
|
||||
|
||||
/* This trick works for 32-bit values */
|
||||
SDL_COMPILE_TIME_ASSERT(SDL_powerof2, sizeof(x) == sizeof(Uint32));
|
||||
{
|
||||
SDL_COMPILE_TIME_ASSERT(SDL_powerof2, sizeof(x) == sizeof(Uint32));
|
||||
}
|
||||
value = x;
|
||||
value -= 1;
|
||||
value |= value >> 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue