Skip to content

Commit

Permalink
Use iszero for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Jan 7, 2025
1 parent ed1a0ce commit e5a5842
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)), eq(eq(fd, u64Mask()), 0))
switch or(iszero(and(flags, 0x20)), iszero(eq(fd, u64Mask())))
case 1 {
addr := u64Mask()
errCode := toU64(0x4d)
Expand Down

0 comments on commit e5a5842

Please sign in to comment.