[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] BORDER window kind



Op 11/23/13 2:20 PM, Jean-François Lemaire schreef:

void main(void)
{
	short int a = 0;

	a |= 0x8000;
	printf("%s\n", a&  0x8000 ? "true":"false");
}

With AHCC this program will print "true".

Same with GCC. Must be something to do with the warning options, then. Thanks,
Jo.

The philosophy behind this is:
If a programmer writes a bit pattern, he gets a bit pattern.
independent of object type.


--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: Digger;  http://digger.atari.org
A Home Cooked C compiler:   AHCC;  http://ahcc.atari.org