Codechange: Increase scrollbar length limit to 32bits #8006
I've updated it to just increase the size, no fiddling around with type-signedness.
...Except for some reason changing it from
nielsmh left a comment
This code has a lot of typecasting to stop the compiler complaining about signed/unsigned type ranges, but it's not actually range safe as far as I can tell. If the scrollbar isn't going to work properly with more than 2^31 elements in the list anyway, just make it use a plain signed int type and do some sanity checks against negative numbers in a few strategic locations.