*file:seek("end")* returns -1 if the file is more than 2,147,483,647 bytes.
*file:seek("set", offset)* return "not an integer in proper range" if *offset* > 2,147,483,647
This happens regardless of the 32/64 bit compiler. Maybe there is some *define* when compiling?