[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.15
Tim Peters
tim.one@comcast.net
Fri, 3 May 2002 01:21:51 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv20259
Modified Files:
Tag: TextIndexDS9-branch
Index.py
Log Message:
scaled_int: make 256 a float literal so it doesn't have to endure
runtime promotion to float on each call.
=== Products/ZCTextIndex/Index.py 1.1.2.14 => 1.1.2.15 ===
def scaled_int(f):
- return int(round(f * 256))
+ return int(round(f * 256.))
class Index:
__implements__ = IIndex