• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[solved]

Status
Not open for further replies.

IonS

Master Blaster Noob
Joined
May 14, 2008
Messages
191
Reaction score
0
Location
Brazil
Closed!
[SOLVED]
 
Last edited:
hehehe Thanks! :)
Swedish is cool too :D

pl... ;X

Yeah! I use 0.3.4 because my project still is 8.42 :wub:
in the future i will update it
 
You're wrong. int16_t have the next capacity: -32767/32767. When using 32 bits signed integers, the capacity may vary between -2147483647 and 2147483647.
 
You're wrong. int16_t have the next capacity: -32767/32767. When using 32 bits signed integers, the capacity may vary between -2147483647 and 2147483647.
hmm, but do you know what, where i have to change to get it?? in sources where i can see are some int32_t and some uint32_t, and i think that a uint have more capacity...
the question is where i need to change to int or uint to get a value greater than 32767... understand?
 
the "u" means unsigned. uint16 ranges from 0 to +65,535 (16bits are the default for "int" too). uint32 ranges from 0 to +4,294,967,295 (32bits are also called "long").
 
hmm.. thanks, i understand it...

but where and for what I have to change in sources?
 
Sorry for double post but

uint32_t ranges from 0 to +4,294,967,295... and int32_t? ranges from 0 to +4,294,967,295 too?
 
how about changing duration variable type to long long int? I mean in sources ofc
I think it would work xD I think thats the only way.

but you will get range like 1..((1.8*10^19)/2),
if its enough for you try changing variable type to LL int,
otherwise you need to use another numbers storage methos, for example: bigNum class.
 
Status
Not open for further replies.
Back
Top