Fixed integer division in gear.ko