Imported Upstream version 2.6.7
[platform/upstream/harfbuzz.git] / src / hb-face.hh
index 68834ba..f1b472c 100644 (file)
@@ -94,7 +94,7 @@ struct hb_face_t
   unsigned int get_num_glyphs () const
   {
     unsigned int ret = num_glyphs.get_relaxed ();
-    if (unlikely (ret == (unsigned int) -1))
+    if (unlikely (ret == UINT_MAX))
       return load_num_glyphs ();
     return ret;
   }