projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
64-bit Windows fixes. Patch from Skywing.
[silc.git]
/
lib
/
silcutil
/
silcatomic.h
diff --git
a/lib/silcutil/silcatomic.h
b/lib/silcutil/silcatomic.h
index 5ec573353f6707a610dc77c4000c1b43b67556d8..de22f8022c7f25e1cce45c7785bc0fb3c36b4482 100644
(file)
--- 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 */ \
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))
@@
-895,7
+895,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))
@@
-1001,7
+1001,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))