diff options
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index af103e3cc..8e79d3159 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -731,7 +731,11 @@ static char *skip_spaces(char *p) | |||
731 | if (*p == '\\' && p[1] == '\n') { | 731 | if (*p == '\\' && p[1] == '\n') { |
732 | p++; | 732 | p++; |
733 | t_lineno++; | 733 | t_lineno++; |
734 | #if !ENABLE_PLATFORM_MINGW32 | ||
734 | } else if (*p != ' ' && *p != '\t') { | 735 | } else if (*p != ' ' && *p != '\t') { |
736 | #else | ||
737 | } else if (*p != ' ' && *p != '\t' && *p != '\r') { | ||
738 | #endif | ||
735 | break; | 739 | break; |
736 | } | 740 | } |
737 | p++; | 741 | p++; |
@@ -2079,7 +2083,7 @@ static int fmt_num(char *b, int size, const char *format, double n, int int_as_i | |||
2079 | const char *s = format; | 2083 | const char *s = format; |
2080 | 2084 | ||
2081 | if (int_as_int && n == (long long)n) { | 2085 | if (int_as_int && n == (long long)n) { |
2082 | r = snprintf(b, size, "%lld", (long long)n); | 2086 | r = snprintf(b, size, "%"LL_FMT"d", (long long)n); |
2083 | } else { | 2087 | } else { |
2084 | do { c = *s; } while (c && *++s); | 2088 | do { c = *s; } while (c && *++s); |
2085 | if (strchr("diouxX", c)) { | 2089 | if (strchr("diouxX", c)) { |