From b391976732e7c3e28909a0c357cc30e8c8d65ced Mon Sep 17 00:00:00 2001 From: LT2H Date: Tue, 10 Jun 2025 10:01:54 +0700 Subject: [PATCH] Add runtime check for modulo by zero --- source/to_cpp1.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/to_cpp1.h b/source/to_cpp1.h index 74ab07acf..6675b5bff 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -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 ) ) {