silence MVC warnings

This commit is contained in:
Michiharu Ariza 2019-04-18 10:38:57 -07:00
parent 518e6e07f2
commit dd4c37529b
3 changed files with 7 additions and 7 deletions

View File

@ -691,7 +691,7 @@ struct opset_t
case OpCode_TwoByteNegInt0: case OpCode_TwoByteNegInt1: case OpCode_TwoByteNegInt0: case OpCode_TwoByteNegInt1:
case OpCode_TwoByteNegInt2: case OpCode_TwoByteNegInt3: case OpCode_TwoByteNegInt2: case OpCode_TwoByteNegInt3:
env.argStack.push_int ((int16_t)(-(op - OpCode_TwoByteNegInt0) * 256 - env.str_ref[0] - 108)); env.argStack.push_int ((-(int16_t)(op - OpCode_TwoByteNegInt0) * 256 - env.str_ref[0] - 108));
env.str_ref.inc (); env.str_ref.inc ();
break; break;

View File

@ -165,8 +165,8 @@ struct bounds_t
{ {
void init () void init ()
{ {
min.set_int (0x7FFFFFFF, 0x7FFFFFFF); min.set_int ((1<<31)-1, (1<<31)-1);
max.set_int (-0x80000000, -0x80000000); max.set_int (-(1<<31), -(1<<31));
} }
void update (const point_t &pt) void update (const point_t &pt)

View File

@ -34,10 +34,10 @@ struct extents_param_t
void init () void init ()
{ {
path_open = false; path_open = false;
min_x.set_int (0x7FFFFFFF); min_x.set_int ((1<<31)-1);
min_y.set_int (0x7FFFFFFF); min_y.set_int ((1<<31)-1);
max_x.set_int (-0x80000000); max_x.set_int (-(1<<31));
max_y.set_int (-0x80000000); max_y.set_int (-(1<<31));
} }
void start_path () { path_open = true; } void start_path () { path_open = true; }