mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-30 23:23:07 +00:00 
			
		
		
		
	Fix MSVC warnings.
This commit is contained in:
		| @@ -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; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose