Skip to content

Commit b391976

Browse files
committed
Add runtime check for modulo by zero
1 parent 5aa32ae commit b391976

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/to_cpp1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4109,6 +4109,8 @@ class cppfront
41094109
&& (
41104110
x.op->type() == lexeme::Slash
41114111
|| x.op->type() == lexeme::SlashEq
4112+
|| x.op->type() == lexeme::Modulo
4113+
|| x.op->type() == lexeme::ModuloEq
41124114
)
41134115
)
41144116
{

0 commit comments

Comments
 (0)