diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index 84ba125cd..e8e2c96f8 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -2078,7 +2078,7 @@ static int fmt_num(char *b, int size, const char *format, double n, int int_as_i | |||
2078 | const char *s = format; | 2078 | const char *s = format; |
2079 | 2079 | ||
2080 | if (int_as_int && n == (long long)n) { | 2080 | if (int_as_int && n == (long long)n) { |
2081 | r = snprintf(b, size, "%lld", (long long)n); | 2081 | r = snprintf(b, size, "%"LL_FMT"d", (long long)n); |
2082 | } else { | 2082 | } else { |
2083 | do { c = *s; } while (c && *++s); | 2083 | do { c = *s; } while (c && *++s); |
2084 | if (strchr("diouxX", c)) { | 2084 | if (strchr("diouxX", c)) { |