projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Win64 compilation fixes.
[crypto.git]
/
lib
/
silcutil
/
silcatomic.h
diff --git
a/lib/silcutil/silcatomic.h
b/lib/silcutil/silcatomic.h
index 27e055b70d09d0e48366582b1b2d417580b07928..77197fa0b37eb879b53ea39060d34af9548be5c1 100644
(file)
--- a/
lib/silcutil/silcatomic.h
+++ b/
lib/silcutil/silcatomic.h
@@
-447,7
+447,7
@@
SILC_ATOMIC_SET_INT_F(bits) \
SILC_ATOMIC_SET_INT_F(bits) \
{ \
/* Windows */ \
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))
}
#elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))
@@
-905,7
+905,7
@@
SILC_ATOMIC_INC_F(bits) \
SILC_ATOMIC_INC_F(bits) \
{ \
/* Windows */ \
SILC_ATOMIC_INC_F(bits) \
{ \
/* Windows */ \
- InterlockedIncrement((LONG
)&atomic->value);
\
+ InterlockedIncrement((LONG
*)&atomic->value);
\
}
#elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))
}
#elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))
@@
-1011,7
+1011,7
@@
SILC_ATOMIC_DEC_F(bits) \
SILC_ATOMIC_DEC_F(bits) \
{ \
/* Windows */ \
SILC_ATOMIC_DEC_F(bits) \
{ \
/* Windows */ \
- InterlockedDecrement((LONG
)&atomic->value);
\
+ InterlockedDecrement((LONG
*)&atomic->value);
\
}
#elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))
}
#elif defined(__GNUC__) && (defined(SILC_I486) || defined(SILC_X86_64))