Evas text: Change bitfield bool types to Eina_Bool. 73/59673/1
authorTom Hacohen <tom@stosb.com>
Thu, 12 Nov 2015 15:43:43 +0000 (15:43 +0000)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 17 Feb 2016 08:55:37 +0000 (17:55 +0900)
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.

Change-Id: Icb0de29e241e5931be7b2c7e9f78c0324b949e46

src/lib/evas/canvas/evas_object_text.c

index aa3eca6..48a09f3 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