freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] freetype 2.3.8 warnings


From: mpsuzuki
Subject: Re: [ft-devel] freetype 2.3.8 warnings
Date: Fri, 23 Jan 2009 15:48:58 +0900

Dear Werner,

As soon as I update Xcode in my Macintosh, I will check
this issue. I'm sorry for I could not help previous
autogen.sh issue on Mac OS X.

On Fri, 23 Jan 2009 07:16:54 +0100 (CET)
Werner LEMBERG <address@hidden> wrote:

>
>> WARNING: While resolving call to function 'FTC_GNode_Compare'
>> arguments were dropped!
>
>No idea what this is...

Me too, at present.

>> base/fttrigon.c: In function 'FT_Vector_Rotate':
>> base/fttrigon.c:439: warning: right shift count >= width of type
>> base/fttrigon.c:440: warning: right shift count >= width of type
>
>Hmm.  For me, this warning appears to be completely useless.  Any
>value larger or equal to 32 makes the result consisting of zeros only,
>expect a bitmask or what?  Can you dig into the compiler's
>documentation to give more details?

I guess it can be related with LP64 issue. In my LP64 patch,
there was a modification of fttrigon.c aslike:

@@ -433,7 +433,7 @@
 
       if ( shift > 0 )
       {
-        FT_Int32  half = 1L << ( shift - 1 );
+        FT_Int32  half = (FT_Int32)1L << ( shift - 1 );
 
 
         vec->x = ( v.x + half + FT_SIGN_LONG( v.x ) ) >> shift; /* WARNED */
         vec->y = ( v.y + half + FT_SIGN_LONG( v.y ) ) >> shift; /* WARNED */

Regards,
mpsuzuki




reply via email to

[Prev in Thread] Current Thread [Next in Thread]