summaryrefslogtreecommitdiff
path: root/mach_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-04-26 10:59:34 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-04-26 12:00:59 +0300
commit2bfaff7f86afd456b697a55ab32143bb9cf8ea2e (patch)
tree2a0866f5a285e4b2920e94265713bce6d5597bfd /mach_dep.c
parentb59413253fa0204d6897a05193c58c42ee0c029c (diff)
downloadbdwgc-2bfaff7f86afd456b697a55ab32143bb9cf8ea2e.tar.gz
Fix syntax of conditional operator in with_callee_saves_pushed
(fix of commit b594132) Issue #133 (bdwgc). * mach_dep.c [!HAVE_PUSH_REGS && UNIX_LIKE && !NO_GETCONTEXT] (GC_with_callee_saves_pushed): Fix syntax of ?: operator (add missing '?' symbol).
Diffstat (limited to 'mach_dep.c')
-rw-r--r--mach_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mach_dep.c b/mach_dep.c
index 95848971..07e633fd 100644
--- a/mach_dep.c
+++ b/mach_dep.c
@@ -266,7 +266,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
context = &ctxt;
}
if (EXPECT(0 == getcontext_works, FALSE))
- getcontext_works = context != NULL 1 : -1;
+ getcontext_works = context != NULL ? 1 : -1;
}
# ifdef GETCONTEXT_FPU_EXCMASK_BUG
# ifdef X86_64