Skip to content

Commit e661a9b

Browse files
committed
WS
1 parent 3018ba4 commit e661a9b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

oauthbearer.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ int64_t zval_to_int64(zval *zval, const char *errstr) {
142142
return (int64_t) Z_DVAL_P(zval);
143143
break;
144144
case IS_STRING:;
145-
char *str = Z_STRVAL_P(zval);
146-
char *end;
147-
converted = (int64_t) strtoll(str, &end, 10);
148-
if (end != str + Z_STRLEN_P(zval)) {
149-
zend_throw_exception(spl_ce_InvalidArgumentException, errstr, 0);
150-
return 0;
151-
}
145+
char *str = Z_STRVAL_P(zval);
146+
char *end;
147+
converted = (int64_t) strtoll(str, &end, 10);
148+
if (end != str + Z_STRLEN_P(zval)) {
149+
zend_throw_exception(spl_ce_InvalidArgumentException, errstr, 0);
150+
return 0;
151+
}
152152
break;
153153
EMPTY_SWITCH_DEFAULT_CASE();
154154
}

0 commit comments

Comments
 (0)