compressed files
Aug 11, 2012 at 11:05am UTC
look at 7th post of this topic please
How about you start a new topic?
That said, constant integers without suffix markings are by default of type
int (which is the same as
long int on a 32-bit machine).
So try this?
return (lutime_t)((i-(116444736000000000ULL)/10000000ULL);
http://cplusplus.com/doc/tutorial/constants/
Caveat:
ULL
comes from
unsigned long long , which comes from C99 (the C language) and is not "officially" available in C++98 and C++03.
If you use a modern compiler, it should be recognized. Otherwise make sure your compiler is C++11 -compliant.
Aug 11, 2012 at 11:36am UTC
The compiler should automatically pick a literal type that is big enough to represent the value. Are you using a compiler that doesn't have long long?
Aug 11, 2012 at 12:27pm UTC
I'm using the latest c::B , set the default compiler to mingw gcc.
I'll try that code as soon as i go home.
thanks everyone
Topic archived. No new replies allowed.