Skip to content

fix(protocol): handle missing types in protocolBufferFromValue#19

Merged
andinux merged 2 commits intomainfrom
fix/protocol-buffer-from-value
Feb 18, 2026
Merged

fix(protocol): handle missing types in protocolBufferFromValue#19
andinux merged 2 commits intomainfrom
fix/protocol-buffer-from-value

Conversation

@andinux
Copy link
Contributor

@andinux andinux commented Feb 17, 2026

  • Add uint, uint8, uint16, uint32, uint64 to the integer type switch so unsigned integers are serialized instead of silently dropped
  • Fix float32 panic in protocolBufferFromFloat caused by unconditional float64 type assertion
  • Dereference pointer types (*int, *string, etc.) via reflect, mapping nil pointers to NULL and non-nil pointers to their underlying value
  • Add unit tests for all supported types and a mixed-array regression test that reproduces the original buffer count mismatch

- Add uint, uint8, uint16, uint32, uint64 to the integer type switch so unsigned integers are serialized instead of silently dropped
- Fix float32 panic in protocolBufferFromFloat caused by unconditional float64 type assertion
- Dereference pointer types (*int, *string, etc.) via reflect, mapping nil pointers to NULL and non-nil pointers to their underlying value
- Add unit tests for all supported types and a mixed-array regression test that reproduces the original buffer count mismatch
@andinux andinux self-assigned this Feb 17, 2026
@andinux andinux merged commit 96998e1 into main Feb 18, 2026
1 check passed
@andinux andinux deleted the fix/protocol-buffer-from-value branch February 18, 2026 13:52
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

Comments