GNOME Bugzilla – Bug 727903
structure: handle 0 denominator
Last modified: 2014-04-10 08:49:57 UTC
Two patches, either use arbitrary target, or error out. Not sure which one people would prefer the behavior to be.
Created attachment 273907 [details] [review] arbitrary target version
Created attachment 273908 [details] [review] error out version
How about neither of those? I would say passing a 0 denominator is a programming error.
Created attachment 273913 [details] [review] error out on 0 target denominator So more like this ?
Yeah, IMHO anyway. (But please write it as "target_denominator != 0" instead of just "target_denominator")
Created attachment 273914 [details] [review] newest patch Updated so. I'll push that soon if nobody else objects.
commit 876af7b343e62eea38abb73c0ee14b7542e5b37f Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Wed Apr 9 17:01:01 2014 +0100 structure: error out when trying to fixate a fraction near an invalid target