diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | interpret.h | 8 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2017-08-28 Arnold D. Robbins <arnold@skeeve.com> + + * interpret.h (r_interpret): Add some casts to avoid warning + messages in printf statements. + 2017-08-25 Pat Rankin <r.pat.rankin@gmail.com> * builtin.c (TYPE_MINIMUM): Use type uintmax_t for the calculation, diff --git a/interpret.h b/interpret.h index 6c5b432e..166a11e1 100644 --- a/interpret.h +++ b/interpret.h @@ -973,11 +973,15 @@ arrayfor: if (arg_count < min_req) fatal(_("%s: called with %lu arguments, expecting at least %lu"), - pc[1].func_name, arg_count, min_req); + pc[1].func_name, + (unsigned long) arg_count, + (unsigned long) min_req); if (do_lint && ! f->suppress_lint && arg_count > max_expect) lintwarn(_("%s: called with %lu arguments, expecting no more than %lu"), - pc[1].func_name, arg_count, max_expect); + pc[1].func_name, + (unsigned long) arg_count, + (unsigned long) max_expect); PUSH_CODE(pc); r = awk_value_to_node(pc->extfunc(arg_count, & result, f)); |