From: Ivan Maidanski Date: Thu, 26 Apr 2018 07:59:34 +0000 (+0300) Subject: Fix syntax of conditional operator in with_callee_saves_pushed X-Git-Tag: v8.0.0~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bfaff7f86afd456b697a55ab32143bb9cf8ea2e;p=gc 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). --- 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