Skip to content

Commit

Permalink
dxf: fix int to unsigned short promotion
Browse files Browse the repository at this point in the history
with -Wformat on apple m2. Fixes GH #1001
  • Loading branch information
rurban committed Aug 16, 2024
1 parent 1aa183f commit e61fdb5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/dwg.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5989,12 +5989,14 @@ DWG_ENTITY (PROXY_ENTITY)
}
#endif
DXF {
VALUE_RS (0, 360);
BITCODE_RS v = 0;
VALUE_RS (v, 360);
}
HANDLE_VECTOR (objids, num_objids, ANYCODE, 340); // code 3 or 4
SINCE (R_2000b) { // only sometimes
DXF {
VALUE_RS (0, 94);
BITCODE_RS v = 0;
VALUE_RS (v, 94);
}
}

Expand Down Expand Up @@ -6122,7 +6124,8 @@ DWG_OBJECT (PROXY_OBJECT)
HANDLE_VECTOR (objids, num_objids, ANYCODE, 340); // code 3 or 4
SINCE (R_2000b) { // only sometimes
DXF {
VALUE_RS (0, 94);
BITCODE_RS v = 0;
VALUE_RS (v, 94);
}
}

Expand Down

0 comments on commit e61fdb5

Please sign in to comment.