Added some assertions.

committer: mfx <mfx> 976878985 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-15 11:16:25 +00:00
parent e55feac192
commit 99a1a85df6

View File

@ -920,7 +920,7 @@ static void first_options(int argc, char **argv)
/*************************************************************************
// assert a sane architecture
// assert a sane architecture and compiler
**************************************************************************/
void upx_sanity_check(void)
@ -931,6 +931,8 @@ void upx_sanity_check(void)
assert(sizeof(long) >= 4);
assert(sizeof(void *) >= 4);
assert(sizeof(long) >= sizeof(void *));
assert(((size_t) -1) > 0);
assert(((ptrdiff_t) -1) < 0);
assert(((off_t) -1) < 0);
assert(sizeof(BE16) == 2);