Skip to content

Commit

Permalink
try to remove clang-tidy warning suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed May 30, 2022
1 parent c76bb03 commit c65cc7a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/fizzy/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,10 @@ ExecutionResult execute_local_function(
const auto opcode = *pc++;
const auto instruction = static_cast<Instr>(opcode);

if constexpr (MeteringEnabled)
{
if constexpr (MeteringEnabled)
{
if ((ctx.ticks -= cost_table[opcode]) < 0)
goto trap;
}
if ((ctx.ticks -= cost_table[opcode]) < 0)
goto trap;
}

switch (instruction)
Expand Down

0 comments on commit c65cc7a

Please sign in to comment.