parsify-dev / desktop

Next generation notepad-based calculator, built with extendibility and privacy in mind.
https://parsify.app
214 stars 2 forks source link

Bit operations bug with 64-bit numbers #77

Open CZDanol opened 1 year ago

CZDanol commented 1 year ago

Describe the issue Seems like for bit operations with integers, Parsify is only considering the first 32 bits.

bin(3948416048575232) // "0b1110000001110001000001000000000000000011001100000000"
bin(3940650747704064) // "0b1110000000000000000001000000000000000011001100000000"

bin(3948416048575232 & 3940650747704064) // "0b1000000000000000011001100000000"

Device (please complete the following information):