From 247e2556a56df786c3d17207d3cc71a920b59fec Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 24 Apr 2008 15:31:57 +0000 Subject: [PATCH] Evas_Bool should be unsigned. This will help the use of Evas_Bool to define bitfield structs like in: struct s { Evas_Bool a:1; Evas_Bool b:1; Evas_Bool c:1; Evas_Bool d:1; Evas_Bool e:1; Evas_Bool f:1; Evas_Bool g:1; Evas_Bool h:1; Evas_Bool i:1; }; It must be unsigned or it would use the signal bit, having "a == 0" to be true anyway, as it would be just +0 and -0. SVN revision: 34362 --- legacy/evas/src/lib/Evas.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/evas/src/lib/Evas.h b/legacy/evas/src/lib/Evas.h index 3d9b1a4bd5..22fb29fd92 100644 --- a/legacy/evas/src/lib/Evas.h +++ b/legacy/evas/src/lib/Evas.h @@ -98,10 +98,10 @@ typedef struct _Evas_Smart Evas_Smart; /**< An Evas Smart Object handle */ typedef struct _Evas_Native_Surface Evas_Native_Surface; /**< A generic datatype for engine specific native surface information */ typedef unsigned long long Evas_Modifier_Mask; /**< An Evas modifier mask type */ -typedef int Evas_Coord; -typedef int Evas_Font_Size; -typedef int Evas_Angle; -typedef char Evas_Bool; +typedef int Evas_Coord; +typedef int Evas_Font_Size; +typedef int Evas_Angle; +typedef unsigned char Evas_Bool; struct _Evas_List /** A linked list node */ {