rtulip / haystack

Haystack is a compiled, statically typed, stack-based language with opt-in variable assignment.
MIT License
25 stars 2 forks source link

Large u64 literals aren't handled properly #158

Open rtulip opened 1 year ago

rtulip commented 1 year ago

If the highest bit of the unsigned int is set in a literal, then it doesn't get treated correctly.

fn main() {
    // 0x10000000000000
    4503599627370496 println //prints 0
    // 0x0FFFFFFFFFFFFF
    4503599627370495 println // prints a big number
}