Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add runtime check for modulo by zero
  • Loading branch information
LT2H committed Aug 12, 2025
commit f9442fe47cf388d058eb701f3b0162d86e1233af
2 changes: 2 additions & 0 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -4109,6 +4109,8 @@ class cppfront
&& (
x.op->type() == lexeme::Slash
|| x.op->type() == lexeme::SlashEq
|| x.op->type() == lexeme::Modulo
|| x.op->type() == lexeme::ModuloEq
)
)
{
Expand Down
Loading