Fix crash in tiff loader on 64bit machines

fix tiff loader: fix check for infinity on 64bit machines