vamp-ir icon indicating copy to clipboard operation
vamp-ir copied to clipboard

Specified iteration count is too large

Open lukaszcz opened this issue 2 years ago • 1 comments

Is there some way around this error?

thread 'main' panicked at 'specified iteration count is too large'

The bound seems to be very small (127). I want much bigger bounds.

lukaszcz avatar Jul 06 '23 14:07 lukaszcz

It comes from this line in transform.rs

for _ in 0..val.to_i8().expect("specified iteration count is too large")

Specifically, the iteration count gets converted to an i8, whose max value is 2^7-1 = 127. You can try replacing to_i8 with to_u8 to double the limit, or go higher with to_i16 or to_u16, and let us know how that works out.

AHartNtkn avatar Jul 06 '23 22:07 AHartNtkn