From 8085c6adbf30d76f8073632a4e2d2452aac366d9 Mon Sep 17 00:00:00 2001 From: Emerson Knapp <537409+emersonknapp@users.noreply.github.com> Date: Mon, 3 Jun 2019 19:52:04 -0700 Subject: [PATCH] Use size_t printf format for size_t variable (#453) Signed-off-by: Emerson Knapp --- rcl/src/rcl/lexer_lookahead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcl/src/rcl/lexer_lookahead.c b/rcl/src/rcl/lexer_lookahead.c index 4b26758..6ce787d 100644 --- a/rcl/src/rcl/lexer_lookahead.c +++ b/rcl/src/rcl/lexer_lookahead.c @@ -219,12 +219,12 @@ rcl_lexer_lookahead2_expect( if (type != lexeme) { if (RCL_LEXEME_NONE == lexeme || RCL_LEXEME_EOF == lexeme) { 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); return RCL_RET_WRONG_LEXEME; } 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); return RCL_RET_WRONG_LEXEME; }