remove VS 'assignment within conditional expression' warning
This commit is contained in:
parent
b43f629d5e
commit
2ec1214fac
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue