avoid deprecated struct sr_rational