Skip to content

Fix decoding of Int values into Number (Double) struct fields#121

Open
HT154 wants to merge 1 commit intoapple:mainfrom
HT154:decode-int-number
Open

Fix decoding of Int values into Number (Double) struct fields#121
HT154 wants to merge 1 commit intoapple:mainfrom
HT154:decode-int-number

Conversation

@HT154
Copy link
Contributor

@HT154 HT154 commented Mar 6, 2026

  • The Number type in Pkl admits Int values
  • Properties of type Number generate struct fields of type Double in Swift
  • Therefore, the decoder must be able to decode msgpack int values into Double/Float Swift struct fields

@HT154 HT154 changed the title Fix decoding of Int values into Number (Double) struct fields Fix decoding of Int values into Number (Double) struct fields Mar 6, 2026
@HT154 HT154 force-pushed the decode-int-number branch from c5906c6 to 51af365 Compare March 6, 2026 22:19
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.

1 participant