Skip to content

fix: Handling bit promotision that c/c++ might do with sign extension#1010

Merged
DomCR merged 1 commit intoDomCR:masterfrom
Mikolaj505:fix/sign-extension-when-parsing-proxy-flags
Mar 24, 2026
Merged

fix: Handling bit promotision that c/c++ might do with sign extension#1010
DomCR merged 1 commit intoDomCR:masterfrom
Mikolaj505:fix/sign-extension-when-parsing-proxy-flags

Conversation

@Mikolaj505
Copy link
Copy Markdown
Contributor

I had a one file where:

EXAC_ESW
90
-64511

That value was throwing exception in DxfReader.

However, after closely analyzing it:
-64511 (signed 16-bit) == 1025 (unsigned)

The intention for ProxyFlag was cleary like so, it seems it's about bit operations that apparently some .cad editors might so on this value.

This fix helps for this case and analogous, doesn't break things.

@DomCR DomCR added the bug Something isn't working label Mar 24, 2026
@DomCR DomCR self-requested a review March 24, 2026 08:10
@DomCR
Copy link
Copy Markdown
Owner

DomCR commented Mar 24, 2026

Looks good!

Thanks for the contribution.

@DomCR DomCR merged commit 2852d1f into DomCR:master Mar 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants