Reply 380 of 862, by szo
wrote:There was just one type of error among many lines in the glide3x source code. I tried to typecast the pointer as intended, but attached is a patch for verification.
That patch is wrong. The intention of the original code is to do pointer math as if the pointer is of the casted type. You want something like this:
- (float *)pointers += 3;
+ pointers = (float *)pointers + 3;