mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 12:24:11 +00:00
common: Silly MSVC
This commit is contained in:
parent
e05ca13f1f
commit
8ff66112d9
@ -70,10 +70,11 @@ int giterr_set_regex(const regex_t *regex, int error_code);
|
||||
*/
|
||||
GIT_INLINE(bool) giterr__check_version(const void *structure, unsigned int expected_max, const char *name)
|
||||
{
|
||||
unsigned int actual = *(const unsigned int*)structure;
|
||||
|
||||
if (!structure)
|
||||
return true;
|
||||
|
||||
unsigned int actual = *(const unsigned int*)structure;
|
||||
if (actual > 0 && actual <= expected_max)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user