mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 18:56:59 +00:00
index: cast to avoid warning
This commit is contained in:
parent
498d0801a1
commit
4aaae9354c
@ -2160,12 +2160,12 @@ static int read_reuc(git_index *index, const char *buffer, size_t size)
|
||||
|
||||
if (git__strtol64(&tmp, buffer, &endptr, 8) < 0 ||
|
||||
!endptr || endptr == buffer || *endptr ||
|
||||
tmp < 0) {
|
||||
tmp < 0 || tmp > UINT32_MAX) {
|
||||
index_entry_reuc_free(lost);
|
||||
return index_error_invalid("reading reuc entry stage");
|
||||
}
|
||||
|
||||
lost->mode[i] = tmp;
|
||||
lost->mode[i] = (uint32_t)tmp;
|
||||
|
||||
len = (endptr + 1) - buffer;
|
||||
if (size <= len) {
|
||||
|
Loading…
Reference in New Issue
Block a user