Don't unconstify when casting
diff --git a/src/common.h b/src/common.h
index 3e7b065..08228c2 100644
--- a/src/common.h
+++ b/src/common.h
@@ -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;