Fix warnings about questionable numeric operations

This commit is contained in:
Eric Fischer
2016-04-27 11:57:46 -07:00
parent d4504da2f5
commit 737ae44dd7
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ drawvec decode_geometry(FILE *meta, long long *geompos, int z, unsigned tx, unsi
deserialize_long_long_io(meta, &dx, geompos);
deserialize_long_long_io(meta, &dy, geompos);
wx += dx << geometry_scale;
wy += dy << geometry_scale;
wx += dx * (1 << geometry_scale);
wy += dy * (1 << geometry_scale);
long long wwx = wx;
long long wwy = wy;