[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua32: Any easy fix for 2038 problem of os.time?
- From: Sam Trenholme <lua@...>
- Date: Wed, 18 Aug 2021 11:32:34 -0700
thank you - but this you have to do only if time_t is defined signed
int. You have to look how in time.h the typedef time_t looks like.
It’s a signed int in 32-bit Linux.
in your C compiler you have already some sort of 64bit math included
GCC, LLVM/Clang, and even TCC support 64-bit ints on 32-bit systems.