lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, May 15, 2015 at 10:58:45PM +0300, Dmitry V. Zaitsev wrote:
> *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?

Odd that you get the same behavior when compiling for 64-bit. What platform
are you using?

Try building Lua with -D_FILE_OFFSET_BITS=64.