I load a function from main.cpp. It includes a file where the function is.
The functions header is:
I make this call from main.cpp:Code:void my_function(int buff[], int length)
buff[2] is an array which contains 0 and 1. length's value is 2.Code:my_function(buff[2], length);
When I debug the values are correct, but immediately after loading the function, they turn into different values right after function call. It seems that it doesn't have anything wrong with code, the function doesn't even change these values, it only uses them in calculations.