Fix out-of-bounds array access warning.

Even though this code is not really used without Roland Sylvain
integrals enabled, it still induces warnings.
Merge pull request #107 from QuLogic/warning-fix

Fix out-of-bounds warnings