From 228d045a06f8da71079ad6e8b363e7c7d584c419 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 22 Sep 2019 15:17:06 -0500 Subject: [PATCH] Fix formatting. --- src/core/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/debug.c b/src/core/debug.c index 2aa238de..04c11b5c 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -162,12 +162,12 @@ void janet_stacktrace(JanetFiber *fiber, Janet err) { FILE *f; if (def->source && (f = fopen((const char *)def->source, "rb"))) { while (notdone && (nread = fread(buf, 1, sizeof(buf), f)) > 0) { - for(size_t i = 0; i < nread; i++) { + for (size_t i = 0; i < nread; i++) { char c = buf[i]; if (c == '\r') { line++; col = 1; - } if (c == '\n') { + } else if (c == '\n') { col = 1; if (last != '\r') { line++;