Bug fix for Turbo C ?

Chris Dollin kers at hplb.hpl.hp.com
Thu Jun 27 19:26:04 AEST 1991


Blair P. Houghton says:

   If it were ANSI C, I'd point to the part where it says bitwise
   operations are undefined when performed on signed operands...

Which bit is that? 

[My draft says in 3.3.7 under ``semantics'' that (in E1 >> E2) ``if E1 has a
signed type and a negative value, the resulting value is
implementation-defined'' (not ``undefined''). For E1 << E2, it just says 
that it's ``E1 left-shifted E2 positions'', and details the value for E1 of 
unsigned type, but seems to be silent on E1 of signed type. I had though I had
a ``latest draft'', but now I look at the date it's Dec 88. Another change?] 
--

Regards, Chris ``GC's should take less than 0.1 second'' Dollin.



More information about the Comp.lang.c mailing list