File diff r22934:0a8259209a75 → r22935:dd88c75e2001
src/core/alloc_func.hpp
Show inline comments
 
@@ -122,13 +122,13 @@ static inline T *ReallocT(T *t_ptr, size
 
		return NULL;
 
	}
 

	
 
	/* Ensure the size does not overflow. */
 
	CheckAllocationConstraints<T>(num_elements);
 

	
 
	t_ptr = (T*)realloc(t_ptr, num_elements * sizeof(T));
 
	t_ptr = (T*)realloc(static_cast<void *>(t_ptr), num_elements * sizeof(T));
 
	if (t_ptr == NULL) ReallocError(num_elements * sizeof(T));
 
	return t_ptr;
 
}
 

	
 
/** alloca() has to be called in the parent function, so define AllocaM() as a macro */
 
#define AllocaM(T, num_elements) \