Off-by-one errors only affect good programmers. Otherwise you just add enough of such errors that all the under- and over-summing cancels out.
7 years ago, when I was a new programmer, I did use a technique like that to fix some JavaScript. I feel brave confessing that.