1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-17 08:47:39 +00:00

Fix MSVC warnings and errors.

This commit is contained in:
Calvin Rose
2019-08-05 20:19:46 -05:00
parent 2193193b12
commit 19c6714f06
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ static void janet_env_detach(JanetFuncEnv *env) {
if (env) {
size_t s = sizeof(Janet) * env->length;
Janet *vmem = malloc(s);
janet_vm_next_collection += s;
janet_vm_next_collection += (uint32_t) s;
if (NULL == vmem) {
JANET_OUT_OF_MEMORY;
}