fixed pos_t lcm type