-
Notifications
You must be signed in to change notification settings - Fork 63
[DO NOT MERGE] Use UInt64 for encoding size #270
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #270 +/- ##
=======================================
Coverage 93.42% 93.42%
=======================================
Files 25 25
Lines 2997 2997
=======================================
Hits 2800 2800
Misses 197 197 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -1,5 +1,5 @@ | |||
function encode_tag(io::IO, field_number, wire_type::WireType) | |||
vbyte_encode(io, (UInt32(field_number) << 3) | UInt32(wire_type)) | |||
vbyte_encode(io, (UInt64(field_number) << 3) | UInt64(wire_type)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this change
encode_tag(e, i, START_GROUP) | ||
encode(e, el) # This method has to be generated by protojl | ||
vbyte_encode(e.io, UInt32(END_GROUP)) | ||
vbyte_encode(e.io, UInt64(END_GROUP)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this change
encode_tag(e, i, START_GROUP) | ||
encode(e, x) # This method has to be generated by protojl | ||
vbyte_encode(e.io, UInt32(END_GROUP)) | ||
vbyte_encode(e.io, UInt64(END_GROUP)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this change
We run into truncation problems because the encoding size is a
UInt32
. This PR does not necessarily need to be merged, we mostly want to unblock ourselves.