mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 00:17:40 +00:00
stdlib: Assert that signed integers use two's complement arithmetic
This commit is contained in:
parent
fd53b3e112
commit
4efbe1ca28
1 changed files with 1 additions and 0 deletions
|
@ -587,6 +587,7 @@ typedef struct SDL_alignment_test
|
||||||
void *b;
|
void *b;
|
||||||
} SDL_alignment_test;
|
} SDL_alignment_test;
|
||||||
SDL_COMPILE_TIME_ASSERT(struct_alignment, sizeof(SDL_alignment_test) == (2 * sizeof(void *)));
|
SDL_COMPILE_TIME_ASSERT(struct_alignment, sizeof(SDL_alignment_test) == (2 * sizeof(void *)));
|
||||||
|
SDL_COMPILE_TIME_ASSERT(two_s_complement, (int)~(int)0 == (int)(-1));
|
||||||
#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
|
#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
|
||||||
/** \endcond */
|
/** \endcond */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue