[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.3: file:seek() and files larger than 2 GB
- From: William Ahern <william@...>
- Date: Fri, 15 May 2015 13:31:25 -0700
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.