Skip to content

Value: add Enum and negative int support to bitCast packed struct#12849

Closed
kkHAIKE wants to merge 1 commit intoziglang:masterfrom
kkHAIKE:fix_bitcast
Closed

Value: add Enum and negative int support to bitCast packed struct#12849
kkHAIKE wants to merge 1 commit intoziglang:masterfrom
kkHAIKE:fix_bitcast

Conversation

@kkHAIKE
Copy link
Contributor

@kkHAIKE kkHAIKE commented Sep 15, 2022

fix #12468

'field_bigint_const' must not be negative in 'packedStructToInt', it will cause shift and bitOr result invalid, so add twos-complement transform with 'packedStructToInt' and 'intToPackedStruct'.

😊

@Vexu
Copy link
Member

Vexu commented Oct 20, 2022

Superceded by #13124 and #13221

@Vexu Vexu closed this Oct 20, 2022
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.

stage2: panic from packedStructToInt

2 participants