Re: [AD] div-by-zero... math3d.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


you shouldn't try to normalize so small vectors anyway.


what im concerned about is the user using this function with what the documents describe as correct data and then it crashes.
is that possible ?
if so, how can such a crash be avoided.
i understand a user doing something as silly as passing a NULL for a BITMAP* is going to crash and the library should not be expected to protect against this sort of stupidity, but users that pass "small vectors" to a function should be aware of a possible crash.






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/