summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-06-30 17:29:25 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:07:00 +0200
commit45a388771686fd791fc753fa877fc794b04d3c32 (patch)
treec1c6ac0075568e9e1a65b5fc87a6275319d92c99 /pthread_support.c
parentac6f0f9e72e1e723b13a2fa9e3ea78c950e8de10 (diff)
2011-06-30 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c (GC_segment_is_thread_stack): Replace '&' operator with '&&' one in conditional expressions. * specific.c (remove_specific): Dereference "entry" local variable only if it is non-NULL. * include/gc.h (GC_NEW): Refine the comment (about the returned value).
Diffstat (limited to 'pthread_support.c')
-rw-r--r--pthread_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread_support.c b/pthread_support.c
index 33e3792..f9af302 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -652,9 +652,9 @@ STATIC void GC_remove_all_threads_but_me(void)
GC_ASSERT(I_HOLD_LOCK());
# ifdef PARALLEL_MARK
for (i = 0; i < GC_markers - 1; ++i) {
- if (marker_sp[i] > lo & marker_sp[i] < hi) return TRUE;
+ if (marker_sp[i] > lo && marker_sp[i] < hi) return TRUE;
# ifdef IA64
- if (marker_bsp[i] > lo & marker_bsp[i] < hi) return TRUE;
+ if (marker_bsp[i] > lo && marker_bsp[i] < hi) return TRUE;
# endif
}
# endif