[pypy-svn] r22898 - pypy/dist/pypy/lib/logic

auc at codespeak.net auc at codespeak.net
Tue Jan 31 15:36:45 CET 2006


Author: auc
Date: Tue Jan 31 15:36:42 2006
New Revision: 22898

Modified:
   pypy/dist/pypy/lib/logic/distributor.py
Log:
fix ref. to choice


Modified: pypy/dist/pypy/lib/logic/distributor.py
==============================================================================
--- pypy/dist/pypy/lib/logic/distributor.py	(original)
+++ pypy/dist/pypy/lib/logic/distributor.py	Tue Jan 31 15:36:42 2006
@@ -145,8 +145,8 @@
         nb_subspaces = self.nb_subdomains()
         values = variable.cs_get_dom(self.cs).get_values()
         nb_elts = max(1, len(values)*1./nb_subspaces)
-        start, end = (int(math.floor(index * nb_elts)),
-                      int(math.floor((index + 1) * nb_elts)))
+        start, end = (int(math.floor(choice * nb_elts)),
+                      int(math.floor((choice + 1) * nb_elts)))
         variable.cs_get_dom(self.cs).remove_values(values[:start])
         variable.cs_get_dom(self.cs).remove_values(values[end:])
 



More information about the Pypy-commit mailing list