From 5c93850553c2c3aa3b9b82848a4adca90a0c8f2f Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 21 Oct 2014 20:24:13 -0700 Subject: Compiler problems. --- src/sat/bsat2/Vec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sat') diff --git a/src/sat/bsat2/Vec.h b/src/sat/bsat2/Vec.h index bb293ade..f0e07d01 100644 --- a/src/sat/bsat2/Vec.h +++ b/src/sat/bsat2/Vec.h @@ -96,7 +96,7 @@ template void vec::capacity(int min_cap) { if (cap >= min_cap) return; int add = imax((min_cap - cap + 1) & ~1, ((cap >> 1) + 2) & ~1); // NOTE: grow by approximately 3/2 - if (add > INT_MAX - cap || ((data = (T*)::realloc(data, (cap += add) * sizeof(T))) == NULL) && errno == ENOMEM) + if (add > INT_MAX - cap || (((data = (T*)::realloc(data, (cap += add) * sizeof(T))) == NULL) && errno == ENOMEM)) throw OutOfMemoryException(); } -- cgit v1.2.3