Path: utzoo!attcan!uunet!spool2.mu.edu!sdd.hp.com!ucsd!pacbell.com!ames!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Is #define THING -10 completely safe? Message-ID: <14998@smoke.brl.mil> Date: 28 Jan 91 05:08:07 GMT References: <33@christmas.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <33@christmas.UUCP> rtm@island.COM (Richard Minner) writes: >Something I've been curious about, should the above be >#define INT_MIN (-2147483648) Yes. >The precedence rules seem to imply that ()'s aren't needed >with a negative integer constant. There are contexts that could cause trouble, e.g. "x-INT_MIN" or "x=INT_MIN". While the C standard requires that these work as expected, many older C implementations will misinterpret these.