Fix "for (int i=..." error
returns correct checksum plus 9 integers for kgamma_r

Signed-off-by: Daniel Tarrant <daniel.g.tarrant@gmail.com>