Skip to content

Commit

Permalink
simplify/fix M0 ops; all tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Jul 23, 2011
1 parent 702eb30 commit f9019ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/m0/perl5/m0_interp.pl
Expand Up @@ -436,7 +436,7 @@ sub m0_opfunc_not {
my ($cf, $a1, $a2, $a3) = @_;
m0_say "not $a1, $a2, $a3";
$$cf->[$a1] = i( i($$cf,$a2) ^ 0xFFFFFFFF);
$$cf->[$a1] = i( ~i($$cf,$a2));
}
sub m0_opfunc_gc_alloc {
Expand Down Expand Up @@ -511,7 +511,7 @@ sub m0_opfunc_get_byte {
my ($cf, $a1, $a2, $a3) = @_;
m0_say "get_byte $a1, $a2, $a3";
$$cf->[$a1] = bytes::ord(bytes::substr($$cf->[$a2], i($$cf,$a3), 1));
$$cf->[$a1] = i(bytes::ord(bytes::substr($$cf->[$a2], i($$cf,$a3), 1)))
}
sub m0_opfunc_set_word {
Expand Down

0 comments on commit f9019ed

Please sign in to comment.