Skip to content
Unverified Commit 4e266f77 authored by Steven Perron's avatar Steven Perron Committed by GitHub
Browse files

Fold divisions by 0. (#1963)

The current implementation in the folder when seeing a division by zero
is to assert.  In the release build, the compiler will attempt to
compute the value, which causes its own problems.

The solution I will go with is to fold the division, and just give it
the value of 0.  The same goes for remainder and mod operations.

Fixes #1961.
parent fae1e61a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment