[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Outline n_points are int16 so overflow is possible becaus
From: |
Sean McBride |
Subject: |
Re: [ft-devel] Outline n_points are int16 so overflow is possible because missing check |
Date: |
Tue, 7 Jul 2009 11:33:08 -0400 |
On 7/7/09 3:14 PM, John Tytgat said:
>Note that signed integer overflow is *not* defined in C, so this is
>compiler (setting) depending. gcc uses this liberty to make the best
>choice for optimisation and code generation. unsigned integer overflow
>is defined (as wrapping around).
A nice discussion of signed overflow and gcc's -Wstrict-overflow warning
is here:
<http://www.airs.com/blog/archives/120>
It could be fun to see how cleanly freetype builds with -Wstrict-
overflow=5. :)
--
____________________________________________________________
Sean McBride, B. Eng address@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada