avoid a `constant expression' compiler warning

This commit is contained in:
rlar 2013-10-01 21:50:02 +02:00
parent 23c8a027f6
commit f12306542c
1 changed files with 8 additions and 1 deletions

View File

@ -127,10 +127,17 @@ spCreate(int Size, int Complex, int *pError)
*pError = spOKAY; *pError = spOKAY;
/* Test for valid size. */ /* Test for valid size. */
if ((Size < 0) || (Size == 0 && !EXPANDABLE)) { #if EXPANDABLE
if (Size < 0) {
*pError = spPANIC; *pError = spPANIC;
return NULL; return NULL;
} }
#else
if (Size <= 0) {
*pError = spPANIC;
return NULL;
}
#endif
#if 0 /* pn: skipped for cider */ #if 0 /* pn: skipped for cider */