[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.20

Tim Peters tim.one@comcast.net
Fri, 3 May 2002 02:15:53 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv12127

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
scaled_int():  Since the potential int overflow problems are probably
squashed now, I feel better saving 10 fractional bits than 8.  10 is
about 3 decimal digits to start with, and that's easy to visualize.


=== Products/ZCTextIndex/Index.py 1.1.2.19 => 1.1.2.20 ===
 
 def scaled_int(f):
-    return int(round(f * 256.))
+    return int(round(f * 1024.))
 
 class Index:
     __implements__ = IIndex