Skip to content

Commit

Permalink
examples/scan: Use correct format specifier for n_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Dec 29, 2023
1 parent e26e74b commit d56f1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int main() {
} else {
scan_result = pg_query__scan_result__unpack(NULL, result.pbuf.len, (void *) result.pbuf.data);

printf(" version: %d, tokens: %ld, size: %zu\n", scan_result->version, scan_result->n_tokens, result.pbuf.len);
printf(" version: %d, tokens: %zu, size: %zu\n", scan_result->version, scan_result->n_tokens, result.pbuf.len);
for (j = 0; j < scan_result->n_tokens; j++) {
scan_token = scan_result->tokens[j];
token_kind = protobuf_c_enum_descriptor_get_value(&pg_query__token__descriptor, scan_token->token);
Expand Down

0 comments on commit d56f1fd

Please sign in to comment.