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; }