Gil Dabah:
It seems you can't cast a pointer from a specified offset:
char* s = "\x34\x34\x12";
short word = *(short*)&s[1]; // <--buggy
printf("%x", word);
will print 34 instead of 1234 (on LE machine, of course).
Confirmed, it's a bug in tcc.
kf:
Happens here too. However,
short word = *(short*)(s+1);
works as expected.
Confirmed, that one works correctly.
--- David A. Wheeler
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel