diff --git a/main/ast_expr2.c b/main/ast_expr2.c index 2154a4d8cb..7a55bc16fc 100644 --- a/main/ast_expr2.c +++ b/main/ast_expr2.c @@ -2475,7 +2475,7 @@ static char *compose_func_args(struct expr_node *arglist) } t = t->right; } - ast_log(LOG_NOTICE,"argbuf uses %d bytes;\n", strlen(argbuf)); + ast_log(LOG_NOTICE,"argbuf uses %d bytes;\n", (int) strlen(argbuf)); return argbuf; } diff --git a/main/ast_expr2.y b/main/ast_expr2.y index d6c5e8eaa6..89baf91bd3 100644 --- a/main/ast_expr2.y +++ b/main/ast_expr2.y @@ -647,7 +647,7 @@ static char *compose_func_args(struct expr_node *arglist) } t = t->right; } - ast_log(LOG_NOTICE,"argbuf uses %d bytes;\n", strlen(argbuf)); + ast_log(LOG_NOTICE,"argbuf uses %d bytes;\n", (int) strlen(argbuf)); return argbuf; }