Commit 8ff66112 by Vicent Marti

common: Silly MSVC

parent e05ca13f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment