sizeof int < 32
Brian Moffet
brianm at sco.COM
Wed Apr 13 01:44:08 AEST 1988
With regard to the
#if sizeof int < 32
#define int long
#else
#define int long /*?*/
#endif
I hope you have source code to _all_ your functions. What happens
if something like printf is expecting an int (16 bit) for a "%d" ?
You end up putting more on the stack than you intended.
Putting more on the stack will only give you the right answer if
your longs are stored least sig. word first. (little endian ?)
--
Brian Moffet brianm at sco.com {uunet,decvax!microsof}!sco!brianm
The opinions expressed are not quite clear and have no relation to my employer.
'Evil Geniuses for a Better Tommorrow!'
More information about the Comp.lang.c
mailing list