1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-24 04:07:41 +00:00

Fix some error condiditions to have the right number of arguments.

This commit is contained in:
Calvin Rose
2021-07-10 14:09:59 -04:00
parent 41a7154aa5
commit 72c1d1c484
2 changed files with 4 additions and 4 deletions

View File

@@ -881,7 +881,7 @@ void janet_formatbv(JanetBuffer *b, const char *format, va_list args) {
}
}
if (nb >= MAX_ITEM)
janet_panicf("format buffer overflow", form);
janet_panic("format buffer overflow");
if (nb > 0)
janet_buffer_push_bytes(b, (uint8_t *) item, nb);
}
@@ -1033,7 +1033,7 @@ void janet_buffer_format(
}
}
if (nb >= MAX_ITEM)
janet_panicf("format buffer overflow", form);
janet_panic("format buffer overflow");
if (nb > 0)
janet_buffer_push_bytes(b, (uint8_t *) item, nb);
}