diff options
author | Ben Straub <bs@github.com> | 2012-12-04 00:45:15 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-04 00:45:15 +0400 |
commit | ee1c33b146a366260a4648b1f29f470fedaca0fa (patch) | |
tree | b370e997a6dd0edc04e7d114d83833621eaae08f /src/common.h | |
parent | de70aea6b1c09b67f233ef0bee83864ce90260b2 (diff) |
Don't unconstify when casting
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 2 |
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; |