3 ms·
Likely as someone mentioned the code assumes the size of an int and a pointer are both 32 bits. And then is casting one to the other and of course barfs on mode
by Gibbon1 5y ago
Likely as someone mentioned the code assumes the size of an int and a pointer are both 32 bits. And then is casting one to the other and of course barfs on modern system where that isn't the case.
Does it compile without warnings?
Did you try compiling with the -m32 flag to generate pure 32 bit code?
You can always try and run it under gdb
- sargstuff 5y agoNeed to know hardware alignement requirements in order to align a given value post struc extraction. https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attributes.html https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attribut...