remove VS 'assignment within conditional expression' warning

This commit is contained in:
Holger Vogt 2019-11-03 11:50:28 +01:00
parent b43f629d5e
commit 2ec1214fac
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Author: 1985 Gordon Jacobs
#define TSTALLOC(ptr, first, second) \
do { \
if (!(here->ptr = SMPmakeElt(matrix, here->first, here->second))) \
if ((here->ptr = SMPmakeElt(matrix, here->first, here->second)) == NULL) \
return E_NOMEM; \
} while (0)

View File

@ -12,7 +12,7 @@ Author: 1985 Gordon Jacobs
#define TSTALLOC(ptr, first, second) \
do { \
if (!(here->ptr = SMPmakeElt(matrix, here->first, here->second))) \
if ((here->ptr = SMPmakeElt(matrix, here->first, here->second)) == NULL) \
return E_NOMEM; \
} while (0)