Files
inja/test
KBS 446379d2ba Throw instead of trapping on modulo by zero (#347)
Op::Modulo was the only arithmetic operator in the switch without a
zero-divisor guard, so {{ a % b }} raised SIGFPE and aborted the host
process. Op::Division already throws at renderer.hpp:307 and
Op::DivisibleBy already checks at :359. Guard the converted divisor,
which is what DivisibleBy does, so a fractional divisor that truncates
to zero is caught too.
2026-09-10 08:03:56 +02:00
..
2021-05-25 10:18:21 +02:00
2021-06-30 19:56:16 +02:00
2021-06-30 19:56:16 +02:00
2025-03-31 23:22:36 +02:00