For bug #188449, since python floats have limited range, we multiply both floating...
authorZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 02:48:46 +0000 (02:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 02:48:46 +0000 (02:48 -0000)
commit05654e20b853fc0cbc50ad34f3f394b5ad570c83
tree196fb3cb93e3fe373575add348aa953bb34bacfb
parent92cfbd66be130d754c3db19a6ac475ccb9fd3cfb
For bug #188449, since python floats have limited range, we multiply both floating point representations by a constant so that they are transformed into whole numbers. This allows the practically infinite range of a python int to be exploited. The multiplication is done by padding both literal strings with zeros as necessary to ensure equal length.

svn path=/main/trunk/; revision=7606
pym/portage/versions.py