Fix not reading negative numbers on 64-bit machines

Detail: http://www.cyborgcomputing.com/?p=45