tnachen opened PR #5261 from tnachen/sigdata_size
to main
:
Addressing #5183 based on discussion on making SigData struct smaller
jameysharp submitted PR review.
jameysharp submitted PR review.
jameysharp created PR review comment:
I'd prefer if this was
u32::from(self.args_length)
instead of using theas
operator, and similarly inrets
below. That documents that we expect the conversion to always successfully preserve value, and does so in a way that the compiler will check for us.
jameysharp created PR review comment:
usize::try_from
was necessary whenlen
was au32
, because I guess Rust supports targets with 16-bitusize
. But both here and innum_rets
below, you can just useusize::from
since these lengths areu16
now.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
jameysharp submitted PR review.
jameysharp created PR review comment:
Unless I've missed something, you can use
usize::from
here as well, right?usize::from(self.rets_length)
fitzgen submitted PR review.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
tnachen updated PR #5261 from tnachen/sigdata_size
to main
.
jameysharp submitted PR review.
jameysharp has enabled auto merge for PR #5261.
jameysharp merged PR #5261.
Last updated: Dec 23 2024 at 12:05 UTC