mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-30 18:05:30 +00:00
Don't unconstify when casting
This commit is contained in:
parent
de70aea6b1
commit
ee1c33b146
@ -73,7 +73,7 @@ GIT_INLINE(bool) giterr__check_version(const void *structure, unsigned int expec
|
||||
if (!structure)
|
||||
return true;
|
||||
|
||||
unsigned int actual = *(unsigned int*)structure;
|
||||
unsigned int actual = *(const unsigned int*)structure;
|
||||
if (actual > 0 && actual <= expected_max)
|
||||
return true;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user