scipy/scipy — pull request #187 by yarikoptic (2012-03-31 01:49:40+00:00)
Title: BUG: smirnov -- make comparison robust to handle NaNs

any comparison (< or >=) with NaN is False, so check to belong to the range
[x,y] must be done with (>=x)&&(<=y) and not !((y))

This issue happens to be critical especially for big-endian architectures
leading to stalling in smirnov due to excessive looping later in the code.

References:
http://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=653948
http://mail.scipy.org/pipermail/scipy-dev/2012-March/017298.html