Thread overview | |||||
---|---|---|---|---|---|
|
November 13, 2011 64 bit | ||||
---|---|---|---|---|
| ||||
Hi, int x; // 32 bit How to declace an 64 bit unsigned variable in Digital Mars ? Thanks, Ed |
November 14, 2011 Re: 64 bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to rebel | On Sun, 13 Nov 2011 18:20:41 +0000, rebel wrote: > Hi, > > int x; // 32 bit > > How to declace an 64 bit unsigned variable in Digital Mars ? > > Thanks, > > Ed #include <stdint.h> uint64_t x; |
November 16, 2011 Re: 64 bit | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | I was looking at this and found a bug in the run time library. Should be able to create a long long using atoll, but atoll calls strtoll with a base of 0 and not 10. long long atoll(const char *p) { return strtoll(p, (char **)NULL, 0); } So if the string has leading zeros it is assumed to be an octal number. |
Copyright © 1999-2021 by the D Language Foundation