Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c Subject: Re: question about shift operator Message-ID: <428@sdrc.UUCP> Date: 2 Nov 88 23:06:36 GMT References: <786@gtx.com> Distribution: na Organization: Structural Dynamics Research Corp., Cincinnati Lines: 16 In article <786@gtx.com>, randy@gtx.com (Randy D. Miller) writes: > I've seen conflicting information about the shift operator in cases > where operand2 is exactly equal to the number of bits in the object. > K&R 1st ed. seems to indicate the operation is undefined, but does > the proposed standard change this? Nope, the draft says "If the value of the right operand is negative or is greater than or equal to the width in bits of the promoted left operand, the behavior is undefined." ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@sdrc.uucp 2000 Eastman Dr. BIX: ltl Milford, OH 45150 AT&T: (513) 576-2070 "Save the Quayles" - Mark Russell