From 2ba984fcbbef4561d35c3a2c502610c38b26f4fb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 7 May 2019 23:28:22 -0700 Subject: [PATCH] Fix signed comparison on 32bit --- src/hb-sanitize.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-sanitize.hh b/src/hb-sanitize.hh index ac424c1d9..5ecd2d2bc 100644 --- a/src/hb-sanitize.hh +++ b/src/hb-sanitize.hh @@ -175,7 +175,7 @@ struct hb_sanitize_context_t : else { this->start = obj_start; - this->end = obj_start + hb_min (this->end - obj_start, obj->get_size ()); + this->end = obj_start + hb_min (size_t (this->end - obj_start), obj->get_size ()); } }