From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Infinite loop??? Date: Sat, 11 Jul 1998 11:00:24 -0700 Organization: Alcyone Systems Lines: 16 Message-ID: <35A7A838.157A99A3@alcyone.com> References: <35A3D8C3 DOT 208E6D23 AT cyberdude DOT com> <35A5FC72 DOT C235F6D9 AT eik DOT bme DOT hu> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Paul Shirley wrote: > The >> operator is clearly defined. For signed operands it does an > arithmetic shift, unsigned ops get a zero extending shift. If you see > anything different its a compiler bug. That's not what ANSI says. With signed, negative operands, the behavior is implementation-defined. -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm:+37.20.07/-121.53.38 \ I put away my nine, fool / 'cause I'm colorblind. / Ice Cube