Mail Archives: djgpp/1998/08/04/17:53:33
From: | "Hooman Katirai" <hkatirai AT netpart DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Possible bit shifting bug ...
|
Date: | Tue, 4 Aug 1998 14:53:27 -0700
|
Message-ID: | <000601bdbff2$503f04a0$1901030a@WS-hkatirai.netpartners.com>
|
MIME-Version: | 1.0
|
Importance: | Normal
|
The following program gives this output. It is as if no bit shifting is
taking place. I recompiled it as a c program and the same results were
obtained:
Program:
#include <iostream.h>
main() {
int j=1;
for (int i=0; i<16; i++) {
cout << j;
j << 1;
}
}
The output is only a series of '1's. No bitshifting ever took place.
I've installed these files:
07/17/98 10:30a 399,350 faq210b.zip
07/17/98 10:30a 1,538,295 djdev201.zip
07/21/98 12:11p 74,952 ind191b.zip
07/17/98 10:30a 466,929 txi390b.zip
07/21/98 12:11p 41,506 csdpmi4b.zip
07/17/98 10:33a 307,489 pk250c32.exe
07/17/98 10:45a 1,472,671 djlsr201.zip
07/17/98 10:46a 1,311,315 gcc281b.zip
07/17/98 10:47a 1,281,235 gpp281b.zip
07/21/98 12:11p 78,539 csdpmi4s.zip
07/17/98 10:48a 234,827 mak3761b.zip
07/17/98 10:48a 1,716,944 rhide14b.zip
07/17/98 11:35a 1,896,445 bnu281b.zip
07/20/98 03:41p 596,811 lgp2811b.zip
07/21/98 09:11a <DIR> old
08/03/98 05:23p 2,366,336 lgp2811s.zip
Guess I'll just have to multiply by two ... until the fix.
Thanks for your time
Hooman
- Raw text -