mirror of
https://github.com/janet-lang/janet
synced 2025-01-14 09:25:41 +00:00
Fix one more warning.
This commit is contained in:
parent
df550efb6b
commit
8cff3dd2c3
@ -633,7 +633,7 @@ void janet_buffer_format(
|
|||||||
if (form[2] == '\0')
|
if (form[2] == '\0')
|
||||||
janet_buffer_push_bytes(b, s, l);
|
janet_buffer_push_bytes(b, s, l);
|
||||||
else {
|
else {
|
||||||
if (l != strlen((const char *) s))
|
if (l != (int32_t) strlen((const char *) s))
|
||||||
janet_panic("string contains zeros");
|
janet_panic("string contains zeros");
|
||||||
if (!strchr(form, '.') && l >= 100) {
|
if (!strchr(form, '.') && l >= 100) {
|
||||||
janet_panic
|
janet_panic
|
||||||
|
Loading…
Reference in New Issue
Block a user