[Bug 95419] [HSW][regression][bisect] RPG Maker game gives "invalid floating point operation" at startup

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 16 21:06:00 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95419

--- Comment #4 from dnord <pinguin255 at gmail.com> ---
Created attachment 123797
  --> https://bugs.freedesktop.org/attachment.cgi?id=123797&action=edit
patch2

Sorry, your patch did not helped, but your suggestion is right: it's division
by zero, when total_wants = 0. This code uses unnecessary math tricks for
trivial things for some reason. If one does the math it can be easily seen,
that (remaining_space/total_wants) ratio always remains the same, so this
error-prone hacky code can be replaced by equivalent clear one, which is not
prone to division-by-zero errors. Patch attached (works for me). Please review.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160516/96b3c4d9/attachment.html>


More information about the intel-3d-bugs mailing list