home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Message-ID: <w7t6sMDBDaUz1@mount7.mountain.rhein-ruhr.de>
- From: NATHAN@MOUNTAIN.RHEIN-RUHR.DE (Stefan Huelswitt)
- Path: uhu.rhein-ruhr.de!mountain.rhein-ruhr.de
- Subject: Re: Is this a SAS/C bug or have I coded it wrong?
- Date: Sat, 06 Jan 1996 19:42:20 +0100
- X-Mailer: MicroDot 1.11beta15 [REGISTERED 0000bd]
- References: <4cfrc5$gsc@misery.millcomm.com>
- X-Gateway: ZCONNECT zc.rhein-ruhr.de [UNIX/Connect v0.74b]
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-ZC-Post: Birtenerstr. 5a; 46487 Wesel
- X-ZC-Telefon: V+49-2803-8572Q
-
- Reply to "Is this a SAS/C bug or have I coded it wrong?"
- (from llucius@millcomm.com (Yambo) on 04.01.1996, 05:16:37)
-
- Hi!
-
- > Is this a SAS/C bug or am I getting more blind???
- >
- > tmpbuf[10];
- >
- > int
- > test( void )
- > {
- >
- > if ( tmpbuf[0] & 0x1f == 1 )
- > return 1;
- >
- > return 0;
- > }
-
- The == operator has a higher priority than the & operator.
-
- if ( ( tmpbuf[0] & 0x1f ) == 1 )
-
- This should cure the problem
-
- Bye ...
-
- --
- Stefan Huelswitt | GCS/E d- s+/-- a- C++(++++) US++++ P L- E- W+
- nathan@mountain.rhein-ruhr.de | // N++@ o-- w(--) O M(-) V- PGP+ t(-) R(++)
- 2:2440/315 | \X/ tv-(+) b+(+++) DI? D-- G+ e++ h! r- y?
-