diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-06-07 22:43:03 +0200 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-06-07 22:43:48 +0200 |
| commit | 3f0358604e48432b53abf097aa3ab6a1e3639813 (patch) | |
| tree | c132a79507bb39fc37abb49e361f2f720bc69737 /src/date.c | |
| parent | 763b838152244c0d7433cde0046e9f67369074e3 (diff) | |
| download | libgit2-3f0358604e48432b53abf097aa3ab6a1e3639813.tar.gz | |
misc: Fix warnings from PVS Studio trial
Diffstat (limited to 'src/date.c')
| -rw-r--r-- | src/date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c index 658b09eb5..f0e637a45 100644 --- a/src/date.c +++ b/src/date.c @@ -531,7 +531,7 @@ static int parse_date_basic(const char *date, git_time_t *timestamp, int *offset /* mktime uses local timezone */ *timestamp = tm_to_time_t(&tm); if (*offset == -1) - *offset = ((time_t)*timestamp - mktime(&tm)) / 60; + *offset = (int)((time_t)*timestamp - mktime(&tm)) / 60; if (*timestamp == (git_time_t)-1) return -1; |
