Commit ee1c33b1 by Ben Straub

Don't unconstify when casting

parent de70aea6
......@@ -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;
......
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