[cairo] big point handling

Dan Amelang daniel.amelang at gmail.com
Tue Jun 12 09:55:28 PDT 2007


On 6/12/07, Kouhei Sutou <kou at cozmixng.org> wrote:
>
> _cairo_fixed_from_double may cause overflow(?) for 32767.

That's right. This thread from last year has some juicy details about
the pros and cons of different approaches to detecting overflow in the
double -> fixed conversion:

http://lists.freedesktop.org/archives/cairo/2006-November/008482.html

> I think it's better that cairo tells us overflow(?) by
> returning something cairo_status_t.

Could be. I bet what you'd really like is for there to be no error at
all. If we move to 24.8 fixed as planned, we avoid the whole overflow
issue.

Dan


More information about the cairo mailing list