viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

((a and b) or c or d) #27

Open viruscamp opened 10 years ago

viruscamp commented 10 years ago

see 997e6848b3333ceca619985d3a2da57ae9d32c3c #1 line 464 currExp->parent = prevParent; When I use this line, it outputs ok, but cause a memory leak. Else, it outputs: if (a and b) or d then

-- Command line: -fc -fn 0_10 E:\cbprojects\luadec\angrybirds_lua\scripts\menus\level_end.lua 
Decompiled_0_10 = function (p)
    local a,b,c,d
    --if (a and b) or d then
    if ((a and b) or c or d) then
        p = 3
    end
end