X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcatomic.h;h=de22f8022c7f25e1cce45c7785bc0fb3c36b4482;hp=5ec573353f6707a610dc77c4000c1b43b67556d8;hb=1d65f94e18488eaa8648f2499fc9814e81783f80;hpb=b3cb960c49554293d12e68b97e716c1aea71f4b7 diff --git a/lib/silcutil/silcatomic.h b/lib/silcutil/silcatomic.h index 5ec57335..de22f802 100644 --- a/lib/silcutil/silcatomic.h +++ b/lib/silcutil/silcatomic.h @@ -437,7 +437,7 @@ SILC_ATOMIC_SET_INT_F(bits) \ SILC_ATOMIC_SET_INT_F(bits) \ { \ /* Windows */ \ - InterlockedExchange((LONG)&atomic->value, (LONG)value); \ + InterlockedExchange((LONG *)&atomic->value, (LONG)value); \ } #elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64)) @@ -895,7 +895,7 @@ SILC_ATOMIC_INC_F(bits) \ SILC_ATOMIC_INC_F(bits) \ { \ /* Windows */ \ - InterlockedIncrement((LONG)&atomic->value); \ + InterlockedIncrement((LONG *)&atomic->value); \ } #elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64)) @@ -1001,7 +1001,7 @@ SILC_ATOMIC_DEC_F(bits) \ SILC_ATOMIC_DEC_F(bits) \ { \ /* Windows */ \ - InterlockedDecrement((LONG)&atomic->value); \ + InterlockedDecrement((LONG *)&atomic->value); \ } #elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))