From df26cf1acef50b21b3b512645ac9f1c0821ab856 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 12 Jun 2021 20:29:09 -0400 Subject: [PATCH] This corrects the issue raised in pull request #75 that breaks the compile on clang and probably other finicky compilers (as well as just being wrong). --- extract/ExtCell.c | 2 +- utils/ihash.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extract/ExtCell.c b/extract/ExtCell.c index d2289dd6..bb470f6a 100644 --- a/extract/ExtCell.c +++ b/extract/ExtCell.c @@ -112,7 +112,7 @@ ExtCell(def, outName, doLength) TxError("Cannot open output file: "); perror(filename); #endif - return; + return NULL; } extNumFatal = extNumWarnings = 0; diff --git a/utils/ihash.h b/utils/ihash.h index 9c5d3f34..3efe01cf 100644 --- a/utils/ihash.h +++ b/utils/ihash.h @@ -50,6 +50,7 @@ static __inline__ int IHashAlignedSize(int size) int result; /* Expand size to be double-word (64 bit) aligned */ result = ((size + 7) / 8) * 8; + return result; } /* The IHashTable struct should not be manipulated directly by clients */