Skip to content

Commit cad6236

Browse files
committed
Move comment
1 parent 2f3b4cc commit cad6236

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oauthbearer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ void oauthbearer_set_token_failure(rd_kafka_t *rk, const char *errstr) {
132132
int64_t zval_to_int64(zval *zval, const char *errstr) {
133133
int64_t converted;
134134

135-
/* On 32-bits, it might be required to pass $lifetime_ms as a float or a
136-
* string */
137135
switch (Z_TYPE_P(zval)) {
138136
case IS_LONG:
139137
return (int64_t) Z_LVAL_P(zval);

rdkafka.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ PHP_METHOD(RdKafka, oauthbearerSetToken)
465465
return;
466466
}
467467

468+
/* On 32-bits, it might be required to pass $lifetime_ms as a float or a
469+
* string */
468470
lifetime_ms = zval_to_int64(zlifetime_ms, "Argument #2 ($lifetime_ms) must be a valid integer");
469471

470472
intern = get_kafka_object(getThis());

0 commit comments

Comments
 (0)