rentzsch/mach_override — pull request #7 by frerich (2012-09-19 21:10:59+00:00)
Title: Fixed warnings reported when using -pedantic with gcc 4.2.1

Compiling mach_override.c with gcc 4.2.1 via

gcc -Wall -pedantic -std=c99 -c mach_override.c

would yield a lot of warnings saying 'warning: overflow in implicit
constant conversion' in the opcode arrays. The reason was that 'char'
is a signed type with this compiler, so 0x90 (as well as 0xFF) were
too large, causing an overflow.

We don't really care whether it's signed or unsigned, but in order
to silence warnings in -pedantic builds just use 'unsigned char' to
be explicit.