Skip to content

Use reference type NSNumber for JSONSerialization #1633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

johnno1962
Copy link
Contributor

@johnno1962 johnno1962 commented Jul 13, 2018

As discussed in PR #1443, now that NSNumber can be cast to numeric types outside Darwin, switch JSONSerialization code to use it. Also removes some ill-advised conversion to Int of double values that happen to round which will fail for double values > Int.max

@johnno1962
Copy link
Contributor Author

Closed in favour of #1634

@johnno1962 johnno1962 closed this Jul 13, 2018
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