loci: fix implicit truncation warning

The compiler complained about this in constant expressions.