lib/geometry: fix bounds

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>