delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/11/14:15:30

From: Erik Max Francis <max AT alcyone DOT com>
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> <VqrTZAA4qlp1Ew16 AT foobar DOT co DOT uk>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019