dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
5 stars 1 forks source link

Don't do div by 0 checks for constant divisors #344

Closed dplassgit closed 1 week ago

dplassgit commented 2 weeks ago

https://github.com/dplassgit/d2lang/blob/trunk/src/com/plasstech/lang/d2/codegen/ILCodeGenerator.java#L553

dplassgit commented 1 week ago

For some reason it isn't detecting zero divisors in the ILCodeGenerator...