From 705dde57fe7bd5aafe93f284db2aa809aad932dc Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Thu, 18 Apr 2019 11:32:10 -0700 Subject: [PATCH] silence MVC warnings 2nd attempt --- src/hb-ot-cff1-table.cc | 4 ++-- src/hb-ot-cff2-table.cc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-ot-cff1-table.cc b/src/hb-ot-cff1-table.cc index f62b80e3c..3b5e5947b 100644 --- a/src/hb-ot-cff1-table.cc +++ b/src/hb-ot-cff1-table.cc @@ -165,8 +165,8 @@ struct bounds_t { void init () { - min.set_int ((1<<31)-1, (1<<31)-1); - max.set_int (-(1<<31), -(1<<31)); + min.set_int (2147483647, 2147483647); + max.set_int (-2147483648, -2147483648); } void update (const point_t &pt) diff --git a/src/hb-ot-cff2-table.cc b/src/hb-ot-cff2-table.cc index 11619d779..0f8a16df8 100644 --- a/src/hb-ot-cff2-table.cc +++ b/src/hb-ot-cff2-table.cc @@ -34,10 +34,10 @@ struct extents_param_t void init () { path_open = false; - min_x.set_int ((1<<31)-1); - min_y.set_int ((1<<31)-1); - max_x.set_int (-(1<<31)); - max_y.set_int (-(1<<31)); + min_x.set_int (2147483647); + min_y.set_int (2147483647); + max_x.set_int (-2147483648); + max_y.set_int (-2147483648); } void start_path () { path_open = true; }