diff options
| author | Calvin Buckley <calvin@cmpct.info> | 2021-07-07 19:12:02 -0300 |
|---|---|---|
| committer | Calvin Buckley <calvin@cmpct.info> | 2021-07-07 19:12:02 -0300 |
| commit | 52505ab5a2f0235d73553b6e8ecaa45943d1efc6 (patch) | |
| tree | b4c6f5f4883cce7c68dd5d9201e6b22e075b35e8 /src/win32 | |
| parent | c1aca3fedaf2cfe6d9bc7f5dbf5828a872dd74e5 (diff) | |
| download | libgit2-52505ab5a2f0235d73553b6e8ecaa45943d1efc6.tar.gz | |
Convert long long constant specifiers to stdint macros
Diffstat (limited to 'src/win32')
| -rw-r--r-- | src/win32/w32_util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/w32_util.h b/src/win32/w32_util.h index 060504ea0..1321d30e6 100644 --- a/src/win32/w32_util.h +++ b/src/win32/w32_util.h @@ -75,7 +75,7 @@ GIT_INLINE(void) git_win32__filetime_to_timespec( struct timespec *ts) { int64_t winTime = ((int64_t)ft->dwHighDateTime << 32) + ft->dwLowDateTime; - winTime -= 116444736000000000LL; /* Windows to Unix Epoch conversion */ + winTime -= INT64_C(116444736000000000); /* Windows to Unix Epoch conversion */ ts->tv_sec = (time_t)(winTime / 10000000); #ifdef GIT_USE_NSEC ts->tv_nsec = (winTime % 10000000) * 100; @@ -87,11 +87,11 @@ GIT_INLINE(void) git_win32__filetime_to_timespec( GIT_INLINE(void) git_win32__timeval_to_filetime( FILETIME *ft, const struct p_timeval tv) { - int64_t ticks = (tv.tv_sec * 10000000LL) + - (tv.tv_usec * 10LL) + 116444736000000000LL; + int64_t ticks = (tv.tv_sec * INT64_C(10000000)) + + (tv.tv_usec * INT64_C(10)) + INT64_C(116444736000000000); - ft->dwHighDateTime = ((ticks >> 32) & 0xffffffffLL); - ft->dwLowDateTime = (ticks & 0xffffffffLL); + ft->dwHighDateTime = ((ticks >> 32) & INT64_C(0xffffffff)); + ft->dwLowDateTime = (ticks & INT64_C(0xffffffff)); } GIT_INLINE(void) git_win32__stat_init( |
