freetype-devel
[Top][All Lists]
Advanced

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

Re: Patches for t2gload (yet again)


From: David Turner
Subject: Re: Patches for t2gload (yet again)
Date: Fri, 07 Jul 2000 19:05:04 +0200

I can't understand, the type of "ip" is FT_Byte* which is
equivalent to (unsigned char*). How could this be promoted
to a signed char ??

- David

Tom Kacvinsky a écrit :
> 
> >
> > I suggest a cast as follows:
> >
> > m = ((unsigned char)k - 247) * 256 + ....
> >
> > which does work.  Another option (not likely, though), is to make all
> > byte streams unsigned chars instead of signed chars...
> >
> 
> Simpler still:
> 
>       /********************************************************************/
>       /*                                                                  */
>       /* Decode operator or operand                                       */
>       /*                                                                  */
> -      v = *ip++;
> +      v = (unsigned char)*ip++;
>       if ( v >= 32 || v == 28 )
>



reply via email to

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