We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d179378 commit 4e92c96Copy full SHA for 4e92c96
ext/bcmath/bcmath.c
@@ -1257,15 +1257,11 @@ static int bcmath_number_compare(zval *op1, zval *op2)
1257
bc_num n1 = NULL;
1258
bc_num n2 = NULL;
1259
1260
- if (UNEXPECTED(Z_TYPE_P(op1) == IS_NULL)) {
1261
- lval1 = 0;
1262
- } else if (UNEXPECTED(bcmath_number_parse_num(op1, &obj1, &str1, &lval1) == FAILURE)) {
+ if (UNEXPECTED(bcmath_number_parse_num(op1, &obj1, &str1, &lval1) == FAILURE)) {
1263
goto fallback;
1264
}
1265
1266
- if (UNEXPECTED(Z_TYPE_P(op2) == IS_NULL)) {
1267
- lval2 = 0;
1268
- } else if (UNEXPECTED(bcmath_number_parse_num(op2, &obj2, &str2, &lval2) == FAILURE)) {
+ if (UNEXPECTED(bcmath_number_parse_num(op2, &obj2, &str2, &lval2) == FAILURE)) {
1269
1270
1271
0 commit comments