C: when index_i grows above 2^31 get segfault in label
What's going on?
By default is is defined as unsigned long
If index_i is unsigned int
or unsigned short
, it works OK (but obviously we scan to top of the image a number of times).
But why a segfault?