Browse Source

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).
migration/unlabaled-1.3.2
Sterling Hughes 24 years ago
parent
commit
5619166fe4
  1. 4
      Zend/zend_operators.c

4
Zend/zend_operators.c

@ -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: \

Loading…
Cancel
Save