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
Bug - llGetSubString and llList2List make wrong result on negative out of range index (when Optimizations are enabled) #35
Comments
Pell if you rollback InternalLLFuncs.hs to it's previous version will it fix the bug? |
Do you mean rollback to 0.1.8? |
See here, the last time we updated it was October 20th |
Tried it but same result... |
subList source start end =
let n = length source
s = convertIndex n start
e = convertIndex n end
in
if s <= e then take (e - s + 1) $ drop s source
else take (e+1) source ++ drop s source
convertIndex length index = if index < 0 then length + index else index |
Yes, exactly! |
It works with the indecies -1..-10, and then keeps returning the same -10 index |
New constants and Pell Smit/bug fix #35
Looks good! Merged everything into https://github.com/raysilent/lslforge/tree/0.1.9.1 branch |
(1)
was converted to
(2)
But result of (1) is:
[20:31] Object: s = , length = 0
[20:31] Object: l = []
and (2)
[20:32] Object: s = 0, length = 1
[20:32] Object: l = [0]
It is a bug in InternalLLFuncs.hs
The text was updated successfully, but these errors were encountered: