Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - 64-bit integer literals bug?
Hi, it seems dmc just uses the lower 32 bits of my 64-bit integer literals. long long t = 123456789012345; gives t the value 123456789012345 mod 2^32 = 2249056121 The compiler doesn't even give a warning. Digital Mars C/C++ Compiler Version 8.33.13n Regards, Mikael Apr 05 2003
On Sat, 5 Apr 2003 13:34:32 +0000 (UTC), Mikael Klasson wrote:long long t = 123456789012345; Apr 05 2003
use long long t = 123456789012345LL; instead Apr 05 2003
"Mikael Klasson" <Mikael_member pathlink.com> wrote in message news:b6mnsa$10ko$1 digitaldaemon.com...P.S. God I love this compiler... It's soooo fast. :) The most annoying Apr 05 2003
Kinda stuck with that. Optlink is written entirely in heavilly optimized assembler, and is a bit immune to any rewrites :-( Apr 05 2003
"Mikael Klasson" <Mikael_member pathlink.com> wrote in message news:b6nlpu$1mjg$1 digitaldaemon.com...Kinda stuck with that. Optlink is written entirely in heavilly optimized assembler, and is a bit immune to any rewrites :-( Apr 05 2003
Can we have it back? That'd be good. :) "Walter" <walter digitalmars.com> wrote in message news:b6nnj4$1nsg$1 digitaldaemon.com..."Mikael Klasson" <Mikael_member pathlink.com> wrote in message news:b6nlpu$1mjg$1 digitaldaemon.com...Kinda stuck with that. Optlink is written entirely in heavilly Apr 05 2003
On Sat, 5 Apr 2003 14:06:02 +0000 (UTC), Mikael Klasson wrote:P.S. God I love this compiler... It's soooo fast. :) The most annoying thing I can think of is the 40MB(?) optlink limit on static data. No fix for that? Apr 06 2003
On Sun, 6 Apr 2003 13:30:11 +0000 (UTC), Christof Meerwald wrote:On Sat, 5 Apr 2003 14:06:02 +0000 (UTC), Mikael Klasson wrote:P.S. God I love this compiler... It's soooo fast. :) The most annoying thing I can think of is the 40MB(?) optlink limit on static data. No fix for that? Apr 06 2003
|