Skip to content

Commit

Permalink
equalsIgnoreCase
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Oct 7, 2023
1 parent 418eb1b commit e06ed8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ void eval(List<Instruction> code) throws ChicoryException {
}
}
} catch (ArithmeticException e) {
if (e.getMessage().toLowerCase().equals("/ by zero")) {
if (e.getMessage().equalsIgnoreCase("/ by zero")) {
throw new WASMRuntimeException("integer divide by zero");
}
throw new WASMRuntimeException(e.getMessage());
Expand Down

0 comments on commit e06ed8d

Please sign in to comment.