[Bf-committers] CVS commit: blender/source/blender/include BIF_editfont.h

Ton Roosendaal bf-committers@blender.org
Tue, 31 Dec 2002 13:14:30 +0100


Hi,

By default chars are unsigned in Blender. Hence the unsigned-char  
compile option in gcc. Don't confuse the coding standards by using  
unsigned chars now...
Just disable these useles compiler warnings.

-Ton-

On Tuesday, Dec 31, 2002, at 12:54 Europe/Amsterdam, Unprivileged User  
wrote:

> nobody      2002/12/31 12:54:33 CET
>
>   Modified files:
>     blender/source/blender/include BIF_editfont.h
>
>   Log:
>   Sorry about that this is part of the last update.  I ment to cancel  
> it
>   and include both files.
>
>   Anyway I was fixing the warning with ascii char...  Here is the diff  
> for
>   editfont.c (the .h was just fixing the header to match it)
>
>   Kent
>
>   Index: editfont.c
>   ===================================================================
>   RCS file: /cvs01/blender/source/blender/src/editfont.c,v
>   retrieving revision 1.3
>   diff -u -r1.3 editfont.c
>   --- editfont.c  25 Nov 2002 12:02:05 -0000      1.3
>   +++ editfont.c  31 Dec 2002 11:52:10 -0000
>   @@ -226,11 +226,12 @@
>           }
>    }
>
>   -void do_textedit(unsigned short event, short val, char ascii)
>   +void do_textedit(unsigned short event, short val, unsigned char  
> _ascii)
>    {
>           Curve *cu;
>           static int accentcode= 0;
>           int x, doit=0, cursmove=0;
>   +        int ascii = _ascii;
>
>   Revision  Changes    Path
>   1.6       +2 -2      blender/source/blender/include/BIF_editfont.h
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton@blender.org