fix an integer overflow in the coverage code path

Link: https://github.com/sebhtml/ray/issues/114
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>