lhartikk / ArnoldC

Arnold Schwarzenegger based programming language
lhartikk.github.io/ArnoldC/
Apache License 2.0
6.73k stars 290 forks source link

Variable type is documented as signed 16 bit in wiki but appears actually to be signed 32 bit integer #112

Open jamesrr39 opened 8 years ago

jamesrr39 commented 8 years ago

Hi, nice project!

I wrote an implementation of the fibonacci sequence in ArnoldC and found that numbers over 2^15 were represented properly, but numbers over 2^31 went round the number wheel and into negative. So it appears that the integer type would be a signed 32 bit integer instead of a signed 16 bit integer.

Links:

hXtreme commented 5 years ago

Related #101