1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00

Fix formatting.

This commit is contained in:
Calvin Rose 2019-09-22 15:17:06 -05:00
parent c447e7b3a5
commit 228d045a06

View File

@ -162,12 +162,12 @@ void janet_stacktrace(JanetFiber *fiber, Janet err) {
FILE *f; FILE *f;
if (def->source && (f = fopen((const char *)def->source, "rb"))) { if (def->source && (f = fopen((const char *)def->source, "rb"))) {
while (notdone && (nread = fread(buf, 1, sizeof(buf), f)) > 0) { 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]; char c = buf[i];
if (c == '\r') { if (c == '\r') {
line++; line++;
col = 1; col = 1;
} if (c == '\n') { } else if (c == '\n') {
col = 1; col = 1;
if (last != '\r') { if (last != '\r') {
line++; line++;