Article View: NET.v7-bugs
Article #1casts and constants
From: uncsmb
Date: Tue, 26 May 1981 10:39
Date: Tue, 26 May 1981 10:39
11 lines
442 bytes
442 bytes
The Ritchie C compiler does not treat the construct
(char) 100
as a constant. This means that statements like
switch(c) {
case (char) 0x80: foobar();
are illegal. The Portable C compiler on the 11, and the VAX C compiler
do not suffer from this problem.
Technical Details
Message-ID:
<anews.Aunc.839>Path:
arc1-ca.pugleaf.net!utzoo!duke!unc!smbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!duke!unc!smb From: unc!smb Newsgroups: NET.v7-bugs Subject: casts and constants Date: Tue, 26 May 1981 10:39:56 +0000 Message-ID: <anews.Aunc.839>