1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-23 10:44:48 +00:00

fix: Fix some windows warnings

This commit is contained in:
GrayJack
2024-04-18 19:37:09 -03:00
parent 09c384a2e9
commit 6eb371e076
14 changed files with 39 additions and 41 deletions

View File

@@ -134,9 +134,9 @@ static void string_description_b(JanetBuffer *buffer, const char *title, void *p
#undef POINTSIZE
}
static void janet_escape_string_impl(JanetBuffer *buffer, const uint8_t *str, int32_t len) {
static void janet_escape_string_impl(JanetBuffer *buffer, const uint8_t *str, size_t len) {
janet_buffer_push_u8(buffer, '"');
for (int32_t i = 0; i < len; ++i) {
for (size_t i = 0; i < len; ++i) {
uint8_t c = str[i];
switch (c) {
case '"':