summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-03 12:45:15 -0800
committerBen Straub <bs@github.com>2012-12-03 12:45:15 -0800
commitee1c33b146a366260a4648b1f29f470fedaca0fa (patch)
treeb370e997a6dd0edc04e7d114d83833621eaae08f /src
parentde70aea6b1c09b67f233ef0bee83864ce90260b2 (diff)
downloadlibgit2-ee1c33b146a366260a4648b1f29f470fedaca0fa.tar.gz
Don't unconstify when casting
Diffstat (limited to 'src')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 3e7b0658f..08228c2a9 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;