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 theasoperator, and similarly inretsbelow. 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_fromwas necessary whenlenwas au32, because I guess Rust supports targets with 16-bitusize. But both here and innum_retsbelow, you can just useusize::fromsince these lengths areu16now.
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::fromhere 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 13 2025 at 19:03 UTC