On 08/23/2011 02:53 PM, Steve Singer wrote:
> On 11-08-21 06:21 PM, Daniel Kahn Gillmor wrote:
>>   0) overflow isn't being handled properly.  The simplest way to fix this
>>   is probably to do this kind of internal computation in floats, and then
>>   cast back to integers later.
> 
> Or long long ?

Depending on your compiler and your architecture, i guess :)

floats seem to have the advantage of being able to scale ridiculously
large, and of never having quiet overflow, just moving to +inf.

But long long (assuming that's 64-bits) would have solved my particular
instance of the problem, yes.

> Reports on the mailing list tends to get attention. I have put this
> report into a bug-report at
> http://www.slony.info/bugzilla/show_bug.cgi?id=235 to track it.

Thanks, i've added myself to the CC list there as well.

Regards,

        --dkg

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Slony1-general mailing list
[email protected]
http://lists.slony.info/mailman/listinfo/slony1-general

Reply via email to