Wed Aug 24 00:21:18 PDT 2011
- Previous message: [Slony1-general] overflow in re-computing sync group sizes
- Next message: [Slony1-general] Question on foreign key constraints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 1030 bytes Desc: OpenPGP digital signature Url : http://lists.slony.info/pipermail/slony1-general/attachments/20110824/6c8843e1/attachment.pgp
- Previous message: [Slony1-general] overflow in re-computing sync group sizes
- Next message: [Slony1-general] Question on foreign key constraints
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list