fixed a bug where Cython was casting doubles in floats

This commit is contained in:
Celine Mercier
2015-10-08 15:28:30 +02:00
parent 2b3f03ec28
commit ebc9f6f512

View File

@ -21,7 +21,7 @@ cdef class OBIDMS_column_float(OBIDMS_column):
if value == OBIFloat_NA : if value == OBIFloat_NA :
result = None result = None
else : else :
result = <float> value result = <double> value
return result return result
cpdef set_item(self, size_t line_nb, str element_name, obifloat_t value): cpdef set_item(self, size_t line_nb, str element_name, obifloat_t value):