Path: utzoo!mnetor!uunet!sco!brianm From: brianm@sco.COM (Brian Moffet) Newsgroups: comp.lang.c Subject: sizeof int < 32 Message-ID: <451@viscous> Date: 12 Apr 88 15:44:08 GMT Organization: The Santa Cruz Operation, Inc. Lines: 19 Keywords: int size vs longs 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@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!'