Distinguish between signed and unsigned in the temporary file

This commit is contained in:
Eric Fischer
2014-12-02 18:03:07 -08:00
parent a1e7426956
commit eaeb55bf71
3 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ drawvec decode_geometry(char **meta, int z, unsigned tx, unsigned ty, int detail
}
if (d.op == VT_MOVETO || d.op == VT_LINETO) {
int wx, wy;
deserialize_int(meta, &wx);
deserialize_int(meta, &wy);
unsigned wx, wy;
deserialize_uint(meta, &wx);
deserialize_uint(meta, &wy);
long long wwx = (unsigned) wx;
long long wwy = (unsigned) wy;