diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-06-29 12:48:58 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-06-29 13:27:55 +0200 |
commit | c4ac556ee7171ee206e11687907d5dbee3ce0a6d (patch) | |
tree | defe10a5a0eaa881d3bdbbc10c667f5a9bd10c1e /src/thread-utils.h | |
parent | f2c41884c3082984f51743d557644cfa2136b878 (diff) | |
download | libgit2-c4ac556ee7171ee206e11687907d5dbee3ce0a6d.tar.gz |
Fix compilation warnings
Diffstat (limited to 'src/thread-utils.h')
-rw-r--r-- | src/thread-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index 83148188d..f19a2ba2c 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -104,7 +104,7 @@ GIT_INLINE(void *) git___compare_and_swap( { volatile void *foundval; #if defined(GIT_WIN32) - foundval = InterlockedCompareExchangePointer(ptr, newval, oldval); + foundval = InterlockedCompareExchangePointer((volatile PVOID *)ptr, newval, oldval); #elif defined(__GNUC__) foundval = __sync_val_compare_and_swap(ptr, oldval, newval); #else |