Skip to content

Commit

Permalink
Fix != 0 check in rvsol
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Jan 6, 2025
1 parent 8ff9318 commit ed1a0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rvsol/src/RISCV.sol
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ contract RISCV is IBigStepper {

let errCode := 0
// ensure MAP_ANONYMOUS is set and fd == -1
switch or(iszero(and(flags, 0x20)), not(eq(fd, u64Mask())))
switch or(iszero(and(flags, 0x20)), eq(eq(fd, u64Mask()), 0))
case 1 {
addr := u64Mask()
errCode := toU64(0x4d)
Expand Down

0 comments on commit ed1a0ce

Please sign in to comment.