Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specified iteration count is too large #116

Open
lukaszcz opened this issue Jul 6, 2023 · 1 comment · May be fixed by #123
Open

Specified iteration count is too large #116

lukaszcz opened this issue Jul 6, 2023 · 1 comment · May be fixed by #123

Comments

@lukaszcz
Copy link
Contributor

lukaszcz commented Jul 6, 2023

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.

@AHartNtkn
Copy link
Collaborator

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.

@lukaszcz lukaszcz linked a pull request Jul 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants