ralexstokes / ssz-rs

Implementation of ethereum's `ssz`
Apache License 2.0
103 stars 41 forks source link

overflow when compiling for 32 bit architectures #27

Closed ncitron closed 1 year ago

ncitron commented 1 year ago

When compiling to wasm32-unknown-unknown, this line overflows, since 2^32 cannot fit inside of usize. I hacked my way around this by just hard coding it to 2^32-1, but I imagine that is going to break something elsewhere. Guessing the better move would be to convert to u64.

ralexstokes commented 1 year ago

fixed in #28