diff options
author | Ben Straub <bstraub@github.com> | 2012-05-15 15:41:05 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-05-15 15:41:05 -0700 |
commit | 1ce4cc0164fbc14fcb7f686483aa581bc946bfdb (patch) | |
tree | 628f63f6508247275eac89357b8b1b960d68f23b /src/util.h | |
parent | 7c22e72ba65fa4ac9c2989d115435aa60788136c (diff) | |
download | libgit2-1ce4cc0164fbc14fcb7f686483aa581bc946bfdb.tar.gz |
Fix date.c build in msvc.
Ported the win32 implementations of gmtime_r,
localtime_r, and gettimeofday to be part of the
posix compatibility layer, and fixed
git_signature_now to use them.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 4d1ee680d..9003c08ad 100644 --- a/src/util.h +++ b/src/util.h @@ -213,7 +213,7 @@ GIT_INLINE(int) git__time_cmp(const git_time *a, const git_time *b) { /* Adjust for time zones. Times are in seconds, offsets are in minutes. */ git_time_t adjusted_a = a->time + ((b->offset - a->offset) * 60); - return adjusted_a - b->time; + return (int)(adjusted_a - b->time); } #endif /* INCLUDE_util_h__ */ |