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 ...@@ -73,7 +73,7 @@ GIT_INLINE(bool) giterr__check_version(const void *structure, unsigned int expec
if (!structure) if (!structure)
return true; return true;
unsigned int actual = *(unsigned int*)structure; unsigned int actual = *(const unsigned int*)structure;
if (actual > 0 && actual <= expected_max) if (actual > 0 && actual <= expected_max)
return true; 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