1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-24 14:16:52 +00:00

Silence MSVC warning.

This commit is contained in:
Calvin Rose 2020-05-30 10:06:39 -04:00
parent 4056b94e01
commit eb9f74a273

View File

@ -285,7 +285,7 @@ static Janet ta_view_next(void *p, Janet key) {
} }
} }
if (!janet_checksize(key)) janet_panic("expected size as key"); if (!janet_checksize(key)) janet_panic("expected size as key");
size_t index = janet_unwrap_number(key); size_t index = (size_t) janet_unwrap_number(key);
index++; index++;
if (index < view->size) { if (index < view->size) {
return janet_wrap_number((double) index); return janet_wrap_number((double) index);