From 1733db502243326e39f06f27d0e75c0a9b752080 Mon Sep 17 00:00:00 2001 From: artemp Date: Wed, 15 Jul 2015 17:46:27 +0200 Subject: [PATCH] c++ - don't rely on implicit int to bool conversions --- src/text/face.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text/face.cpp b/src/text/face.cpp index 10afa65ae..79f35d8fe 100644 --- a/src/text/face.cpp +++ b/src/text/face.cpp @@ -36,12 +36,12 @@ font_face::font_face(FT_Face face) bool font_face::set_character_sizes(double size) { - return !FT_Set_Char_Size(face_,0,(FT_F26Dot6)(size * (1<<6)),0,0); + return (FT_Set_Char_Size(face_,0,(FT_F26Dot6)(size * (1<<6)),0,0) == 0); } bool font_face::set_unscaled_character_sizes() { - return !FT_Set_Char_Size(face_,0,face_->units_per_EM,0,0); + return (FT_Set_Char_Size(face_,0,face_->units_per_EM,0,0) == 0); } bool font_face::glyph_dimensions(glyph_info & glyph) const