summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2013-09-22 16:54:41 +0700
committerGary V. Vaughan <gary@gnu.org>2013-09-22 16:54:41 +0700
commit5756e9af9addf1891b92c50f8bbb12ef08ca6334 (patch)
tree49ef2916578e3b31872a3f2812f69cb4a8d7c8d1
parent14a0629ba3b954f647bfaa2a72e18dc6a24b2d1a (diff)
downloadm4-5756e9af9addf1891b92c50f8bbb12ef08ca6334.tar.gz
maint: fix a type coercion flagged by -Wformat.
* modules/m4.c (maketemp): Don't pass a size_t as the precission parameter to %.*s. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r--modules/m4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m4.c b/modules/m4.c
index ec47d01c..1d2f7f53 100644
--- a/modules/m4.c
+++ b/modules/m4.c
@@ -769,7 +769,7 @@ M4BUILTIN_HANDLER (maketemp)
if (len - i < pid_len)
obstack_grow (obs, pid + pid_len - (len - i), len - i);
else
- obstack_printf (obs, "%.*d%s", len - i - pid_len, 0, pid);
+ obstack_printf (obs, "%.*d%s", (int) (len - i - pid_len), 0, pid);
}
else
m4_make_temp (context, obs, me, M4ARG (1), M4ARGLEN (1), false);