1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-27 14:48:13 +00:00

Fix MSVC warnings.

This commit is contained in:
Calvin Rose 2020-01-12 10:19:51 -06:00
parent b54d9725d8
commit 0e7cf51890

View File

@ -393,7 +393,7 @@ void janet_collect(void) {
void janet_gcroot(Janet root) {
size_t newcount = janet_vm_root_count + 1;
if (newcount > janet_vm_root_capacity) {
uint32_t newcap = 2 * newcount;
size_t newcap = 2 * newcount;
janet_vm_roots = realloc(janet_vm_roots, sizeof(Janet) * newcap);
if (NULL == janet_vm_roots) {
JANET_OUT_OF_MEMORY;