summaryrefslogtreecommitdiff
path: root/math/nickle/patches/patch-aa
blob: b0fae23a75deaf53dec6aff9d45ef1ac50a9100f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-aa,v 1.5 2017/04/23 14:49:27 taca Exp $

* Fix build issue with Sun Studio.

--- execute.c.orig	2008-03-20 00:21:49.000000000 +0000
+++ execute.c
@@ -730,7 +730,7 @@ ThreadUnwind (Value thread, int twixt, i
 #endif
 }
 
-#define ThreadBoxCheck(box,i) (BoxValueGet(box,i) == 0 ? ThreadBoxSetDefault(box,i,0) : 0)
+#define ThreadBoxCheck(box,i) (BoxValueGet(box,i) == 0 ? (ThreadBoxSetDefault(box,i,0) ,1) : 0)
 
 typedef struct _TypeChain {
     struct _TypeChain	*prev;