Skip to content

Commit 07ea068

Browse files
author
Thies C. Arntzen
committed
fixed ZVAL_FALSE and ZVAL_TRUE
1 parent 6cf5e7f commit 07ea068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_API.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ if ((z)->value.str.val[ (z)->value.str.len ] != '\0') zend_error(E_WARNING, "Str
293293
(z)->type = IS_STRING; \
294294
}
295295

296-
#define ZVAL_FALSE { (z)->value.lval = 0; (z)->type = IS_BOOL; }
297-
#define ZVAL_TRUE { (z)->value.lval = 1; (z)->type = IS_BOOL; }
296+
#define ZVAL_FALSE(z) ZVAL_BOOL(z,0)
297+
#define ZVAL_TRUE(z) ZVAL_BOOL(z,1)
298298

299299
#define RETVAL_RESOURCE(l) ZVAL_RESOURCE(return_value,l)
300300
#define RETVAL_BOOL(b) ZVAL_BOOL(return_value,b)

0 commit comments

Comments
 (0)