mirror of
				https://github.com/janet-lang/janet
				synced 2025-11-04 01:23:04 +00:00 
			
		
		
		
	Fix MSVC warnings and errors.
This commit is contained in:
		@@ -202,7 +202,7 @@ static void janet_env_detach(JanetFuncEnv *env) {
 | 
				
			|||||||
    if (env) {
 | 
					    if (env) {
 | 
				
			||||||
        size_t s = sizeof(Janet) * env->length;
 | 
					        size_t s = sizeof(Janet) * env->length;
 | 
				
			||||||
        Janet *vmem = malloc(s);
 | 
					        Janet *vmem = malloc(s);
 | 
				
			||||||
        janet_vm_next_collection += s;
 | 
					        janet_vm_next_collection += (uint32_t) s;
 | 
				
			||||||
        if (NULL == vmem) {
 | 
					        if (NULL == vmem) {
 | 
				
			||||||
            JANET_OUT_OF_MEMORY;
 | 
					            JANET_OUT_OF_MEMORY;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -159,7 +159,7 @@ static void ta_view_unmarshal(void *p, JanetMarshalContext *ctx) {
 | 
				
			|||||||
    view->as.u8 = view->buffer->data + offset;
 | 
					    view->as.u8 = view->buffer->data + offset;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static JanetMethod tarray_view_methods[];
 | 
					static JanetMethod tarray_view_methods[6];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static Janet ta_getter(void *p, Janet key) {
 | 
					static Janet ta_getter(void *p, Janet key) {
 | 
				
			||||||
    Janet value;
 | 
					    Janet value;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user