freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Build freetype2 64bit in windows


From: Werner LEMBERG
Subject: Re: [ft-devel] Build freetype2 64bit in windows
Date: Mon, 17 Dec 2012 09:13:21 +0100 (CET)


Dear 晓明, 


I've just stumbled across your old e-mail from April the 12th.

> freetype-2.4.9\src\bdf\bdflib.c(772): warning C4244: “function”:
>   conversion from 'ptrdiff_t' to 'unsigned long',
>   possible loss of data
>
> error = (*cb)( buf + start, end - start, lineno,
>                (void*)&cb, client_data );

Fixed.

> freetype-2.4.9\src\base(39): warning C4306: “function”:
>   conversion from ' int ' to ' FT_Pointer ' of greater size
>
> if ( svc == FT_SERVICE_UNAVAILABLE )
>   // this line: FT_SERVICE_UNAVAILABLE is defined to ((FT_Pointer)-2)

I think I've fixed this and similar issues by using the `logical not'
operator (~) instead of a negative value.  Please test the current git.

> freetype-2.4.9\src\type1\t1load.c(618): warning C4244: “function”:
>   conversion from 'FT_PtrDist' to 'FT_Long', possible loss of data
>
> if ( FT_ALLOC( blend->axis_names[n], len + 1 ) )

Fixed.

If you still get warnings please send the complete output to the list.


    Werner

reply via email to

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