commit | ea512f71084296be3bd893f78650def894066de0 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Thu Nov 26 19:22:22 2015 -0500 |
committer | Behdad Esfahbod <[email protected]> | Thu Nov 26 19:22:22 2015 -0500 |
tree | 25fd823fc6eb8ad323a46f84e045e11323529c32 | |
parent | 67a36a725e2a61a096ba0324f359d17f9b02d312 [diff] [blame] |
Use C-style casts instead of compare to 0, to convert hb_bool_t to bool
diff --git a/src/hb-common.cc b/src/hb-common.cc index 176da8d..710b36e 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc
@@ -521,7 +521,7 @@ } } hb_user_data_item_t item = {key, data, destroy}; - bool ret = !!items.replace_or_insert (item, lock, replace != 0); + bool ret = !!items.replace_or_insert (item, lock, (bool) replace); return ret; }