@@ -1250,7 +1250,7 @@ PHP_FUNCTION(min)
1250
1250
min = &args[i];
1251
1251
}
1252
1252
} else if (Z_TYPE(args[i]) == IS_DOUBLE && (zend_dval_to_lval((double) min_lval) == min_lval)) {
1253
- /* if min_lval can be exactly represented as a float , go to float dedicated code */
1253
+ /* if min_lval can be exactly represented as a double , go to double dedicated code */
1254
1254
min_dval = (double) min_lval;
1255
1255
goto double_compare;
1256
1256
} else {
@@ -1270,7 +1270,7 @@ PHP_FUNCTION(min)
1270
1270
min = &args[i];
1271
1271
}
1272
1272
} else if (Z_TYPE(args[i]) == IS_LONG && (zend_dval_to_lval((double) Z_LVAL(args[i])) == Z_LVAL(args[i]))) {
1273
- /* if the value can be exactly represented as a float , use float dedicated code otherwise generic */
1273
+ /* if the value can be exactly represented as a double , use double dedicated code otherwise generic */
1274
1274
if (min_dval > (double)Z_LVAL(args[i])) {
1275
1275
min_dval = (double)Z_LVAL(args[i]);
1276
1276
min = &args[i];
@@ -1339,7 +1339,7 @@ PHP_FUNCTION(max)
1339
1339
max = &args[i];
1340
1340
}
1341
1341
} else if (Z_TYPE(args[i]) == IS_DOUBLE && (zend_dval_to_lval((double) max_lval) == max_lval)) {
1342
- /* if max_level can be exactly represented as a float , go to float dedicated code */
1342
+ /* if max_lval can be exactly represented as a double , go to double dedicated code */
1343
1343
max_dval = (double) max_lval;
1344
1344
goto double_compare;
1345
1345
} else {
@@ -1359,7 +1359,7 @@ PHP_FUNCTION(max)
1359
1359
max = &args[i];
1360
1360
}
1361
1361
} else if (Z_TYPE(args[i]) == IS_LONG && (zend_dval_to_lval((double) Z_LVAL(args[i])) == Z_LVAL(args[i]))) {
1362
- /* if the value can be exactly represented as a float , use float dedicated code otherwise generic */
1362
+ /* if the value can be exactly represented as a double , use double dedicated code otherwise generic */
1363
1363
if (max_dval < (double)Z_LVAL(args[i])) {
1364
1364
max_dval = (double)Z_LVAL(args[i]);
1365
1365
max = &args[i];
0 commit comments