diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-10-23 07:57:48 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-10-23 14:58:17 +0400 |
commit | 4167db074ba2b1078007294fd351e514261ea087 (patch) | |
tree | 87e927d6c5133b14c6dc0aafc7e84a0f252fc187 /mark_rts.c | |
parent | a04a05d963bffa3130362d98f8d94daaf8c28378 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |