Hi everyone, I'm trying to develop an app (harder than it looks, but it's been going somewhat smooth until now). I have a problem.

From what I've read, Javascript treats numbers as 32 bit integers for binary operations (& for example, binary AND). This is great since I'm working with 32 bit values.

But I have a big nice trouble here:

If I do an AND operation from 2 values, I get a negative value on the Pre, and a positive value on a 64 bit calculator. Seems like it's overflowing somewhere.

Could this be a javascript problem? workaroundable? Or I'll better off splitting my values into 16 bit chunks?

Thanks