aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index cc17ad438..56688d72c 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -727,7 +727,11 @@ static char *skip_spaces(char *p)
727 if (*p == '\\' && p[1] == '\n') { 727 if (*p == '\\' && p[1] == '\n') {
728 p++; 728 p++;
729 t_lineno++; 729 t_lineno++;
730#if !ENABLE_PLATFORM_MINGW32
730 } else if (*p != ' ' && *p != '\t') { 731 } else if (*p != ' ' && *p != '\t') {
732#else
733 } else if (*p != ' ' && *p != '\t' && *p != '\r') {
734#endif
731 break; 735 break;
732 } 736 }
733 p++; 737 p++;
@@ -2073,7 +2077,7 @@ static int fmt_num(char *b, int size, const char *format, double n, int int_as_i
2073 const char *s = format; 2077 const char *s = format;
2074 2078
2075 if (int_as_int && n == (long long)n) { 2079 if (int_as_int && n == (long long)n) {
2076 r = snprintf(b, size, "%lld", (long long)n); 2080 r = snprintf(b, size, "%"LL_FMT"d", (long long)n);
2077 } else { 2081 } else {
2078 do { c = *s; } while (c && *++s); 2082 do { c = *s; } while (c && *++s);
2079 if (strchr("diouxX", c)) { 2083 if (strchr("diouxX", c)) {