Skip to content

fix: support signed repr c_enum derive#38

Merged
nuskey8 merged 1 commit into
nuskey8:mainfrom
paq:c-enum-i8
May 14, 2026
Merged

fix: support signed repr c_enum derive#38
nuskey8 merged 1 commit into
nuskey8:mainfrom
paq:c-enum-i8

Conversation

@paq
Copy link
Copy Markdown
Contributor

@paq paq commented May 12, 2026

[msgpack(c_enum) doesn't handle signed derive correctly. For example, #[repr(i8)] enum E { A = -1 } would encode as u64::MAX, not -1. This PR fixes signed enum handling.

@nuskey8 nuskey8 merged commit 44853f9 into nuskey8:main May 14, 2026
2 checks passed
@nuskey8
Copy link
Copy Markdown
Owner

nuskey8 commented May 14, 2026

Merged the PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants