From b172f88c7d33cf2c563ca995104476cf0a876e05 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 18 Jun 2022 14:00:27 -0600 Subject: [PATCH] Fix a warning D:\a\harfbuzz\harfbuzz\src\hb-bit-set-invertible.hh(83): warning C4805: '^': unsafe mix of type 'uint32_t' and type 'const bool' in operation [870/1075] Compiling C++ object src/harfbuzz.dll.p/hb-face.cc.obj cl : Command line warning D9025 : overriding '/EHs' with '/EHs-' cl : Command line warning D9025 : overriding '/EHc' with '/EHc-' --- src/hb-bit-set-invertible.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-bit-set-invertible.hh b/src/hb-bit-set-invertible.hh index 512107ffd..27fb0732e 100644 --- a/src/hb-bit-set-invertible.hh +++ b/src/hb-bit-set-invertible.hh @@ -80,7 +80,7 @@ struct hb_bit_set_invertible_t next (&v); return v == INVALID; } - uint32_t hash () const { return s.hash () ^ inverted; } + uint32_t hash () const { return s.hash () ^ (uint32_t) inverted; } hb_codepoint_t get_min () const {