From 2bfaff7f86afd456b697a55ab32143bb9cf8ea2e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 26 Apr 2018 10:59:34 +0300 Subject: 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). --- mach_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mach_dep.c') 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 -- cgit v1.2.1