C
1
Name:
Anonymous
2009-12-12 8:25
he guys, shouldn't a 64bit integer go further than a 32bit integer? my programm cuts out @ 2^32 instead of 2^64...
im 100% shure i compiled it as a 64 bit application...
2
Name:
Anonymous
2009-12-12 8:28
please look up the difference between signed and unsigned values, thank you
The management
3
Name:
Anonymous
2009-12-12 8:40
Verify that you are using 64-bit datatypes. ints rarely are.
4
Name:
Anonymous
2009-12-12 8:43
>>1
You mean you compiled it as a 64-bit app but used
ints in the source code?
Ha ha oh wow!!
5
Name:
Anonymous
2009-12-12 8:49
6
Name:
Anonymous
2009-12-12 8:50
>>4
hey why no? it works with 16bit apps, it works with 32bit apps and why shouldn't it work with 64bit apps?
7
Name:
Anonymous
2009-12-12 8:54
>>6
Because the standard doesn't require that ints be 64 bits long, either use a
long long int
8
Name:
Anonymous
2009-12-12 8:57
use int64 or uint64.
i think those are the right names for it, i've never used them before.
check your sys/types.h file.
also, long int.
9
Name:
>>8
2009-12-12 9:02
i means sys/stdint.h
10
Name:
Anonymous
2009-12-12 9:03
Hey OP, why dont you use pointers instead of ints, they are always the word size
11
Name:
Anonymous
2009-12-12 9:06
>>5
What?
How did you know??
12
Name:
Anonymous
2009-12-12 9:13
>>8,9
No, you mean
stdint.h .
16
Name:
Anonymous
2010-12-21 4:24
Newer Posts