There is an insidious bug in the INDEX macro. It manifests in cases like this:
If the problem isn't obvious, I recommend manually expanding the macro to see it.Code:sprintf(&PCR1[INDEX(no, d+1, t)], "%d", amount);
Hint: rhymes with "crop aerator decadence".
chown33
How very Freudian of me. The very thing I was trying to show that needed to be guarded against in one of the other threads.