removed cast from test case that should normally be redundant
authorStefan Behnel <scoder@users.berlios.de>
Tue, 9 Feb 2010 09:14:28 +0000 (10:14 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 9 Feb 2010 09:14:28 +0000 (10:14 +0100)
tests/wrappers/cpp_overload_wrapper.pyx

index ccf5f02470f01a465b16b05a3c565688c87d8dc6..856a164bdb3f70dd6faab965d14bcbfa29e5c4a2 100644 (file)
@@ -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()