Skip to content
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

Fix jstype = JS_STRING field option for speed optimized code #29

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

timostamm
Copy link
Owner

There was a bug in internal-binary-read.ts

When the field option jstype = JS_STRING was set, the generated method internalBinaryRead would still read the field as a bigint.

This problem only surfaces if the plugin parameter long_type_string is not set and code is optimized for speed (instead of for code size).

There was a bug in internal-binary-read.ts

When the field option jstype = JS_STRING was set, the generated method `internalBinaryRead` would still read the field as a bigint.

This problem only surfaces if the plugin parameter long_type_string is *not* set and code is optimized for speed (instead of for code size).
@timostamm timostamm merged commit 172a982 into v1.x Nov 19, 2020
@timostamm
Copy link
Owner Author

Also fixed in master.

Released in v1.0.10

@timostamm timostamm mentioned this pull request Nov 19, 2020
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