BUG: Use NAN from numpy.

MSVC doesn't define NAN in math.h because they only implement C89.

See http://tdistler.com/2011/03/24/how-to-define-nan-not-a-number-on-windows.
This commit is contained in:
Scott Sanderson
2015-08-21 11:33:20 -04:00
parent 8dc0276d99
commit 41d4133c74
+2 -2
View File
@@ -23,8 +23,8 @@ from zipline.errors import (
WindowLengthTooLong,
)
cdef extern from "math.h" nogil:
float NAN
cdef double NAN = float64('nan')
NOMASK = None