optimize loops. The check only exists for integers because that's the more

common optimization, and you actually lose performance if you check for
a double too (wierd but true).
This commit is contained in:
Sterling Hughes 2003-05-21 18:46:34 +00:00
parent 7b26ddd9b0
commit 5619166fe4

View file

@ -144,7 +144,9 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC)
#define zendi_convert_scalar_to_number(op, holder, result) \
if (op==result) { \
convert_scalar_to_number(op TSRMLS_CC); \
if (op->type != IS_LONG) { \
convert_scalar_to_number(op TSRMLS_CC); \
} \
} else { \
switch ((op)->type) { \
case IS_STRING: \