Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Oct 24, 2024
1 parent 1d73741 commit dad5276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions kafka_consumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ PHP_METHOD(RdKafka_KafkaConsumer, queryWatermarkOffsets)
object_intern *intern;
char *topic;
size_t topic_length;
long low, high;
int64_t low, high;
zend_long partition, timeout;
zval *lowResult, *highResult;
rd_kafka_resp_err_t err;
Expand All @@ -791,8 +791,8 @@ PHP_METHOD(RdKafka_KafkaConsumer, queryWatermarkOffsets)
return;
}

ZVAL_LONG(lowResult, low);
ZVAL_LONG(highResult, high);
ZVAL_LONG(lowResult, (zend_long) low);
ZVAL_LONG(highResult, (zend_long) high);
}
/* }}} */

Expand Down
6 changes: 3 additions & 3 deletions rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ PHP_METHOD(RdKafka, queryWatermarkOffsets)
kafka_object *intern;
char *topic;
size_t topic_length;
long low, high;
int64_t low, high;
zend_long partition, timeout;
zval *lowResult, *highResult;
rd_kafka_resp_err_t err;
Expand All @@ -747,8 +747,8 @@ PHP_METHOD(RdKafka, queryWatermarkOffsets)
return;
}

ZVAL_LONG(lowResult, low);
ZVAL_LONG(highResult, high);
ZVAL_LONG(lowResult, (zend_long) low);
ZVAL_LONG(highResult, (zend_long) high);
}
/* }}} */

Expand Down

0 comments on commit dad5276

Please sign in to comment.