]> granicus.if.org Git - gc/commitdiff
Fix syntax of conditional operator in with_callee_saves_pushed
authorIvan Maidanski <ivmai@mail.ru>
Thu, 26 Apr 2018 07:59:34 +0000 (10:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 26 Apr 2018 09:00:59 +0000 (12:00 +0300)
(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

index 958489710ffc3a2726e041d137d1d8d7a75732ee..07e633fdbb37c689ab999374e3e9e8de0b1293eb 100644 (file)
@@ -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