fixed a bug where Cython was casting doubles in floats
This commit is contained in:
@ -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):
|
||||||
|
Reference in New Issue
Block a user