[haiku-commits] Re: haiku: hrev45881 - src/preferences/cpufrequency

  • From: Urias McCullough <umccullough@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 19 Jul 2013 10:22:18 -0700

On Fri, Jul 19, 2013 at 8:34 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
> Am 19/07/2013 04:27, schrieb stpere@xxxxxxxxx:
>
>>         color.red = fLowFreqColor.red
>> -                                       + (fHighFreqColor.red -
>> fLowFreqColor.red)
>> -                                               / (fNSteps - 1) * step;
>> +               + (fHighFreqColor.red - fLowFreqColor.red) * step /
>> (fNSteps - 1);
>
>
> Could you reproduce the original problem? At least I don't understand how
> this can change anything, as the division does not change.

I guess if step was 0, this fixes the divide-by-zero issue?

Other related posts: