Commit 166833a2 authored by Stefan Behnel's avatar Stefan Behnel

removed cast from test case that should normally be redundant

parent bf320361
......@@ -8,7 +8,7 @@ cdef class DoubleKeeper:
if factor is None:
self.keeper = new cppwrap_lib.DoubleKeeper()
else:
self.keeper = new cppwrap_lib.DoubleKeeper(<double>factor)
self.keeper = new cppwrap_lib.DoubleKeeper(factor)
def __dealloc__(self):
del self.keeper
......@@ -17,7 +17,7 @@ cdef class DoubleKeeper:
if factor is None:
self.keeper.set_number()
else:
self.keeper.set_number(<double>factor)
self.keeper.set_number(factor)
def get_number(self):
return self.keeper.get_number()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment