From 63a2108480cca2d9c1a2f61d6642d70496f1a5e3 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Thu, 18 Apr 2019 13:54:58 -0700 Subject: [PATCH] silence MVC warnings 3rd attempt --- src/hb-ot-cff1-table.cc | 5 +++-- src/hb-ot-cff2-table.cc | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/hb-ot-cff1-table.cc b/src/hb-ot-cff1-table.cc index 3b5e5947b..5132801bf 100644 --- a/src/hb-ot-cff1-table.cc +++ b/src/hb-ot-cff1-table.cc @@ -26,6 +26,7 @@ #include "hb-ot-cff1-table.hh" #include "hb-cff1-interp-cs.hh" +#include using namespace CFF; @@ -165,8 +166,8 @@ struct bounds_t { void init () { - min.set_int (2147483647, 2147483647); - max.set_int (-2147483648, -2147483648); + min.set_int (INT_MAX, INT_MAX); + max.set_int (INT_MIN, INT_MIN); } void update (const point_t &pt) diff --git a/src/hb-ot-cff2-table.cc b/src/hb-ot-cff2-table.cc index 0f8a16df8..15cdbaa85 100644 --- a/src/hb-ot-cff2-table.cc +++ b/src/hb-ot-cff2-table.cc @@ -26,6 +26,7 @@ #include "hb-ot-cff2-table.hh" #include "hb-cff2-interp-cs.hh" +#include using namespace CFF; @@ -34,10 +35,10 @@ struct extents_param_t void init () { path_open = false; - min_x.set_int (2147483647); - min_y.set_int (2147483647); - max_x.set_int (-2147483648); - max_y.set_int (-2147483648); + min_x.set_int (INT_MAX); + min_y.set_int (INT_MAX); + max_x.set_int (INT_MIN); + max_y.set_int (INT_MIN); } void start_path () { path_open = true; }