summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/awk/run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/run.c b/usr.bin/awk/run.c
index 9e8bb42aba7..5f8c885fbf6 100644
--- a/usr.bin/awk/run.c
+++ b/usr.bin/awk/run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: run.c,v 1.35 2014/10/11 03:07:29 doug Exp $ */
+/* $OpenBSD: run.c,v 1.36 2014/12/01 03:18:50 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
@@ -921,7 +921,7 @@ int format(char **pbuf, int *pbufsize, const char *s, Node *a) /* printf-like co
break;
case 'c':
if (isnum(x)) {
- if (getfval(x))
+ if ((int)getfval(x))
snprintf(p, buf + bufsize - p, fmt, (int) getfval(x));
else {
*p++ = '\0'; /* explicit null byte */