From ee1c33b146a366260a4648b1f29f470fedaca0fa Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Mon, 3 Dec 2012 12:45:15 -0800 Subject: [PATCH] Don't unconstify when casting --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;