summaryrefslogtreecommitdiff
path: root/mark_rts.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-10-23 07:57:48 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-10-23 14:58:17 +0400
commit4167db074ba2b1078007294fd351e514261ea087 (patch)
tree87e927d6c5133b14c6dc0aafc7e84a0f252fc187 /mark_rts.c
parenta04a05d963bffa3130362d98f8d94daaf8c28378 (diff)
downloadbdwgc-4167db074ba2b1078007294fd351e514261ea087.tar.gz
Eliminate 'cast from int to pointer' warning in GC_exclude_static_roots
* mark_rts.c (GC_exclude_static_roots): Cast integer literal to pointer via word type (to eliminate compiler warning).
Diffstat (limited to 'mark_rts.c')
-rw-r--r--mark_rts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mark_rts.c b/mark_rts.c
index 8795a5b5..7ffe82a6 100644
--- a/mark_rts.c
+++ b/mark_rts.c
@@ -479,7 +479,7 @@ GC_API void GC_CALL GC_exclude_static_roots(void *b, void *e)
/* Round boundaries (in direction reverse to that of GC_add_roots). */
b = (void *)((word)b & ~(sizeof(word) - 1));
e = (void *)(((word)e + (sizeof(word) - 1)) & ~(sizeof(word) - 1));
- if (0 == e) e = (void *)(~(sizeof(word) - 1)); /* handle overflow */
+ if (0 == e) e = (void *)(word)(~(sizeof(word) - 1)); /* handle overflow */
LOCK();
GC_exclude_static_roots_inner(b, e);