Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r69100:dd43ba74cfeb
Date: 2014-02-08 11:19 +0100
http://bitbucket.org/pypy/pypy/changeset/dd43ba74cfeb/

Log:    Add comment

diff --git a/rpython/jit/metainterp/history.py 
b/rpython/jit/metainterp/history.py
--- a/rpython/jit/metainterp/history.py
+++ b/rpython/jit/metainterp/history.py
@@ -275,6 +275,9 @@
 
     def same_constant(self, other):
         if isinstance(other, ConstFloat):
+            # careful in this comparison: if self.value and other.value
+            # are both NaN, stored as regular floats, then it will turn
+            # out to be false...
             return (longlong.extract_bits(self.value) ==
                     longlong.extract_bits(other.value))
         return False
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to