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 varint decoding #18

Merged
merged 1 commit into from
Jul 25, 2017
Merged

Conversation

mransan
Copy link
Contributor

@mransan mransan commented Jul 25, 2017

The current code fails to decode integers such as (3 << 56).

@mransan
Copy link
Contributor Author

mransan commented Jul 25, 2017

Note that the test added fails with the current code.

@whitequark whitequark merged commit 3f9f535 into ocaml-ppx:master Jul 25, 2017
@whitequark
Copy link
Collaborator

Thanks!

@mransan
Copy link
Contributor Author

mransan commented Jul 25, 2017

@whitequark any chance we can get a new opam version! That would be awesome. Thanks

@whitequark
Copy link
Collaborator

A new version will be released after ppx_deriving 4.2 lands.

gasche added a commit to gasche/opam-repository that referenced this pull request Dec 2, 2017
  * Support for NPM packaging (ocaml-ppx/ppx_deriving_protobuf#17)
    (Maxime Rasan)
  * Fix `varint` decoding (ocaml-ppx/ppx_deriving_protobuf#18)
    (There was a decoding bug for integers between 2^56 and 2^63)
    (Maxime Rasan)
  * Support for OCaml 4.06 (ocaml-ppx/ppx_deriving_protobuf#19)
    (Gabriel Scherer)

The homepage for the project has now moved to:
<https://github.com/ocaml-ppx/ppx_deriving_protobuf>
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