Updated calcChecksum so should be able to compile correctly

Should have fixed the compiling problem.