iconv, localedef: avoid floating point rounding differences [BZ #24372]
commitac64195ccd4f320659fd0058bc7524c6fd0b37b4
authorDJ Delorie <dj@redhat.com>
Thu, 21 Mar 2019 03:56:59 +0000 (20 23:56 -0400)
committerDJ Delorie <dj@redhat.com>
Thu, 21 Mar 2019 17:47:14 +0000 (21 13:47 -0400)
tree9d893046b8e37b22b212af7e4a57d2e3ac3300fd
parent61f5e9470fb397a4c334938ac5a667427d9047df
iconv, localedef: avoid floating point rounding differences [BZ #24372]

Two cases of "int * 1.4" may result in imprecise results, which
in at least one case resulted in i686 and x86-64 producing
different locale files.  This replaced that floating point multiply
with integer operations.  While the hash table margin is increased
from 40% to 50%, testing shows only 2% increase in overall size
of the locale archive.

https://bugzilla.redhat.com/show_bug.cgi?id=1311954

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
iconv/iconvconfig.c
locale/programs/ld-collate.c