projects
/
pycomedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30247b7
)
fix compilation with cython 0.15.1
author
Éric Piel
<piel@delmic.com>
Thu, 18 Oct 2012 08:32:48 +0000
(10:32 +0200)
committer
W. Trevor King
<wking@tremily.us>
Thu, 18 Oct 2012 18:02:34 +0000
(14:02 -0400)
Need to help cython to find out that a new CalibrationSetting is a CalibrationSetting, otherwise
it thinks that its properties are python objects.
pycomedi/calibration.pyx
patch
|
blob
|
history
diff --git
a/pycomedi/calibration.pyx
b/pycomedi/calibration.pyx
index f68eb96ff25d9fd727796796a65cf5b56cc1c865..248745befb20ce3b13f7126b4242b85c10761918 100644
(file)
--- a/
pycomedi/calibration.pyx
+++ b/
pycomedi/calibration.pyx
@@
-673,7
+673,7
@@
cdef class Calibration (object):
return None
ret = []
for i in range(self.calibration.num_settings):
- s = CalibrationSetting(
+ s =
<CalibrationSetting>
CalibrationSetting(
subdevice=self.device.subdevice(
index=self.calibration.settings[i].subdevice))
s.setting = &self.calibration.settings[i]