The culprit is that `sk_num(stack)` can return -1 as c_int if there is no stack allocated. Previously, thanks to unsafe casts, this would result in a isize::max() for len() and iteration size if there was no stack. Now this case is handled specifically, which fixes the issue. |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| Cargo.toml | ||
| LICENSE | ||
| build.rs | ||