diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-07-10 12:08:04 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-07-10 12:08:04 -0700 |
| commit | 3cd8b687d5dc8006a5eae9e9c4dac212e8df67d1 (patch) | |
| tree | 1a4bb64d48619e2a1ef0106be89bba17768bff63 /src/util.h | |
| parent | ca3939e682a3198a3d18f42b7fbf84823312dc61 (diff) | |
| download | libgit2-3cd8b687d5dc8006a5eae9e9c4dac212e8df67d1.tar.gz | |
Fix warning in util.h (signed vs unsigned comparison)
This fix had been delayed by Ramsay because on 32-bit systems it
highlights the fact that off_t is set to an invalid value.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
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 4195117c1..71d0a2d52 100644 --- a/src/util.h +++ b/src/util.h @@ -38,7 +38,7 @@ extern int git__basename(char *base, size_t n, char *path); GIT_INLINE(int) git__is_sizet(off_t p) { size_t r = (size_t)p; - return p == r; + return p == (off_t)r; } /* |
