Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Newsgroups: comp.std.c Subject: Re: Semi constant expressions Message-ID: <1989Sep1.111928.27836@jarvis.csri.toronto.edu> Date: 1 Sep 89 15:19:29 GMT References: <1237@gmdzi.UUCP> <1989Aug31.175652.29643@sq.sq.com> Lines: 12 msb@sq.sq.com (Mark Brader) writes: >> x << (100000000L) >By the way, the L on the right operand has no effect. ... >and the plain constant 100000000 would be [int] or [long] depending on the >size of ints. But a good compiler might warn you if you say "100000000" and it gets promoted to long. (For example, not that this compiler is otherwise good, later versions of the QNX C compiler.) Of course, compilers can warn about anything, but this sounds like a reasonable warning. ajr