Evas text: Change bitfield bool types to Eina_Bool.
authorTom Hacohen <tom@stosb.com>
Thu, 12 Nov 2015 15:43:43 +0000 (15:43 +0000)
committerTom Hacohen <tom@stosb.com>
Thu, 12 Nov 2015 15:49:45 +0000 (15:49 +0000)
This is really just a safety measure, as we always just check if the value
is true. However, with char the potential values are -1 and 0, and with
Eina_Bool they are 1 and 0, so fixing that.

Thanks to the "sparse semantic parser" for detecting that, and to Stefan
for reporting.

src/lib/evas/canvas/evas_object_text.c

index c066a40..52b9170 100644 (file)
@@ -68,8 +68,8 @@ struct _Evas_Text_Data
    float                       max_ascent, max_descent;
 
    Evas_BiDi_Direction         bidi_dir : 2;
-   char                        changed : 1;
-   char                        has_filter : 1;
+   Eina_Bool                   changed : 1;
+   Eina_Bool                   has_filter : 1;
 };
 
 struct _Evas_Object_Text_Item