Assuming it is a local variable (I didn't look at the code), the best way would be to use AllocaM (which is a wrapper to alloca). It reserves memory from the stack until the end of the function (not the scope!) that uses the macro. So, it's similar, but not identical to what local variables do:ChillCore wrote: Can i fix this, with my limited knowledge?
If so, how?
I would be happy to provide a fixed patch.
If only i knew what to change where.
Code: Select all
int *top_row = AllocaM(int, right_column - left_column + 1);
Edit: For this to work, you have to include core/alloc_func.hpp if it not already is.