mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08:20 +00:00
Fix optimization of fn > -1 and fn < 0 when fn's minimum is -1 in conditions
E.g. llSubStringIndex(...) > -1 was converted into !~llSubStringIndex(...) which is incorrect. We even had a test case for it... with a wrong expected response file. Bug report and test case by Sinha Hynes (thanks!)
This commit is contained in:
parent
1bdaff32ab
commit
1ab9dd69b4
2 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@ default
|
|||
{
|
||||
changed(integer ch)
|
||||
{
|
||||
if (~llListFindList(llGetPrimitiveParams((list)9), (list)"a"))
|
||||
if (!~llListFindList(llGetPrimitiveParams((list)9), (list)"a"))
|
||||
llDie();
|
||||
if (!llSameGroup(llGetOwner()))
|
||||
llOwnerSay("e");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue