Use size_t printf format for size_t variable (#453)
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
This commit is contained in:
parent
4f68bbf43f
commit
8085c6adbf
1 changed files with 2 additions and 2 deletions
|
@ -219,12 +219,12 @@ rcl_lexer_lookahead2_expect(
|
||||||
if (type != lexeme) {
|
if (type != lexeme) {
|
||||||
if (RCL_LEXEME_NONE == lexeme || RCL_LEXEME_EOF == lexeme) {
|
if (RCL_LEXEME_NONE == lexeme || RCL_LEXEME_EOF == lexeme) {
|
||||||
RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(
|
RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(
|
||||||
"Expected lexeme type (%d) not found, search ended at index %lu",
|
"Expected lexeme type (%d) not found, search ended at index %zu",
|
||||||
type, buffer->impl->text_idx);
|
type, buffer->impl->text_idx);
|
||||||
return RCL_RET_WRONG_LEXEME;
|
return RCL_RET_WRONG_LEXEME;
|
||||||
}
|
}
|
||||||
RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(
|
RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(
|
||||||
"Expected lexeme type %d, got %d at index %lu", type, lexeme,
|
"Expected lexeme type %d, got %d at index %zu", type, lexeme,
|
||||||
buffer->impl->text_idx);
|
buffer->impl->text_idx);
|
||||||
return RCL_RET_WRONG_LEXEME;
|
return RCL_RET_WRONG_LEXEME;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue