This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[swfinterp] Implement equals opcode
totalwebcasting
Philipp Hagemeister
10 years ago
parent
3cbcff8a2d
commit
eb5376044c
2 changed files
with
15 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
test/swftests/EqualsOperator.as
+5
-0
youtube_dl/swfinterp.py
+ 10
- 0
test/swftests/EqualsOperator.as
View File
@ -0,0 +1,10 @@
//
input
:
[]
//
output
:
false
package
{
public
class
EqualsOperator
{
public
static
function
main
()
:
Boolean
{
return
1
==
2
;
}
}
}
+ 5
- 0
youtube_dl/swfinterp.py
View File
@ -629,6 +629,11 @@ class SWFInterpreter(object):
value1
=
stack
.
pop
(
)
res
=
value1
%
value2
stack
.
append
(
res
)
elif
opcode
==
171
:
# equals
value2
=
stack
.
pop
(
)
value1
=
stack
.
pop
(
)
result
=
value1
==
value2
stack
.
append
(
result
)
elif
opcode
==
175
:
# greaterequals
value2
=
stack
.
pop
(
)
value1
=
stack
.
pop
(
)
Write
Preview
Loading…
Cancel
Save