mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 18:38:58 +00:00
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>
This commit is contained in:
parent
ca3939e682
commit
3cd8b687d5
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user