Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-04 00:45:15 +0400
committerBen Straub <bs@github.com>2012-12-04 00:45:15 +0400
commitee1c33b146a366260a4648b1f29f470fedaca0fa (patch)
treeb370e997a6dd0edc04e7d114d83833621eaae08f /src/common.h
parentde70aea6b1c09b67f233ef0bee83864ce90260b2 (diff)
Don't unconstify when casting
Diffstat (limited to 'src/common.h')
-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;