summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@linux.ibm.com>2022-02-18 13:29:38 +1100
committerAnton Blanchard <anton@ozlabs.org>2022-02-18 13:29:38 +1100
commitc93c4053d3528efd709a3b5bf78023abd1d183e5 (patch)
tree9b6cf1bcd958418ffc04bedb94fad5fed30f6941
parent33fb7a809d9f076bd3a9e16585f075a96adb42ea (diff)
downloadabc-c93c4053d3528efd709a3b5bf78023abd1d183e5.tar.gz
abc-c93c4053d3528efd709a3b5bf78023abd1d183e5.tar.bz2
abc-c93c4053d3528efd709a3b5bf78023abd1d183e5.zip
Fix compile error on targets with unsigned char
abc is failing to compile on ppc64le because char is unsigned by default: src/misc/extra/extraUtilMisc.c: In function ‘void abc::Extra_TruthExpand(int, int, unsigned int*, unsigned int, unsigned int*)’: src/misc/extra/extraUtilMisc.c:1550:5: error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
-rw-r--r--src/misc/extra/extraUtilMisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/extra/extraUtilMisc.c b/src/misc/extra/extraUtilMisc.c
index c38369cd..e081e9c6 100644
--- a/src/misc/extra/extraUtilMisc.c
+++ b/src/misc/extra/extraUtilMisc.c
@@ -1290,7 +1290,7 @@ void Extra_TruthExpand( int nVars, int nWords, unsigned * puTruth, unsigned uPha
{ 0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF,0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF },
{ 0x00000000,0x00000000,0x00000000,0x00000000,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF }
};
- static char Cases[256] = {
+ static signed char Cases[256] = {
0, // 00000000
0, // 00000001
1, // 00000010