mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +00:00
Fix MSVC warnings.
This commit is contained in:
parent
b54d9725d8
commit
0e7cf51890
@ -393,7 +393,7 @@ void janet_collect(void) {
|
|||||||
void janet_gcroot(Janet root) {
|
void janet_gcroot(Janet root) {
|
||||||
size_t newcount = janet_vm_root_count + 1;
|
size_t newcount = janet_vm_root_count + 1;
|
||||||
if (newcount > janet_vm_root_capacity) {
|
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);
|
janet_vm_roots = realloc(janet_vm_roots, sizeof(Janet) * newcap);
|
||||||
if (NULL == janet_vm_roots) {
|
if (NULL == janet_vm_roots) {
|
||||||
JANET_OUT_OF_MEMORY;
|
JANET_OUT_OF_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user