In 32 bit systems casting to "long" will cut the result to 32 bit.
Attach a file by drag & drop or click to upload