The quick-and-dirty fix is to switch all your 32bit numbers to 64 bit numbers (assuming your programming language supports it).