summaryrefslogtreecommitdiffstats
path: root/src/bdd
diff options
context:
space:
mode:
authorBaruch Sterin <baruchs@gmail.com>2015-11-05 01:23:31 -0800
committerBaruch Sterin <baruchs@gmail.com>2015-11-05 01:23:31 -0800
commitc0ba25a69388765d7057ae8729e12b8a85435e35 (patch)
tree98c999fed9d9cf65b6425334e819c8b339fc6025 /src/bdd
parent8ee49ff150a12f7183fe25e0a8d8e845391c100b (diff)
downloadabc-c0ba25a69388765d7057ae8729e12b8a85435e35.tar.gz
abc-c0ba25a69388765d7057ae8729e12b8a85435e35.tar.bz2
abc-c0ba25a69388765d7057ae8729e12b8a85435e35.zip
silence clang errors when compiling as C++
Diffstat (limited to 'src/bdd')
-rw-r--r--src/bdd/extrab/extraBddThresh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bdd/extrab/extraBddThresh.c b/src/bdd/extrab/extraBddThresh.c
index 511fc24b..4ac13c68 100644
--- a/src/bdd/extrab/extraBddThresh.c
+++ b/src/bdd/extrab/extraBddThresh.c
@@ -444,13 +444,13 @@ int Extra_ThreshAssignWeights(word * t, char * pIsop, char * pIsopFneg,
unsigned long **pGreaters;
unsigned long **pSmallers;
- pGreaters = malloc(nCubesIsop * nCubesIsopFneg * sizeof *pGreaters);
+ pGreaters = (unsigned long **)malloc(nCubesIsop * nCubesIsopFneg * sizeof *pGreaters);
for (i = 0; i < nCubesIsop * nCubesIsopFneg; i++) {
- pGreaters[i] = malloc(nChows * sizeof *pGreaters[i]);
+ pGreaters[i] = (unsigned long *)malloc(nChows * sizeof *pGreaters[i]);
}
- pSmallers = malloc(nCubesIsop * nCubesIsopFneg * sizeof *pSmallers);
+ pSmallers = (unsigned long **)malloc(nCubesIsop * nCubesIsopFneg * sizeof *pSmallers);
for (i = 0; i < nCubesIsop * nCubesIsopFneg; i++) {
- pSmallers[i] = malloc(nChows * sizeof *pSmallers[i]);
+ pSmallers[i] = (unsigned long *)malloc(nChows * sizeof *pSmallers[i]);
}
//******************************