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.
When compiling to
wasm32-unknown-unknown
, this line overflows, since 2^32 cannot fit inside ofusize
. 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 tou64
.