home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0019 < prev    next >
Encoding:
Text File  |  1981-05-28  |  349 b   |  17 lines

  1. Aunc.839
  2. NET.v7-bugs
  3. utzoo!duke!unc!smb
  4. Tue May 26 10:39:56 1981
  5. casts and constants
  6. The Ritchie C compiler does not treat the construct
  7.  
  8.     (char) 100
  9.  
  10. as a constant.  This means that statements like
  11.  
  12.     switch(c) {
  13.         case (char) 0x80:    foobar();
  14.  
  15. are illegal.  The Portable C compiler on the 11, and the VAX C compiler
  16. do not suffer from this problem.
  17.