Elementwise right division of integer types by zero crashes.
Reported by Brian Miller
BUG DESCRIPTION:
----------------
For apparently all int and uint types (I haven't checked them all) right division by zero appears OK, returns the maximum positive integer type and I suppose %inf or %Nan are not really useful for these types anyway. But elementwise division crashes scilab altogether.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
--> uint8(1)/0 // outputs 255,
--> int8(1)/0 // outputs 127,
--> int8(0)/0 // outputs 0
that's all fine (I guess? sorry I'm new to scilab, not sure whether and how %inf and %Nan should be represented by integer types).
However
--> uint8(1)./0
crashes, similarly for all integer types I've tried, and matrix denominators containing at least one zero.
OTHER INFORMATION:
------------------
I discovered this because of an error in my programming, since resolved as I will not encounter zero division without coding errors, but thought any crash would be of interest.