[pytango] 154/483: fix for visual c++
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.
commit b5b446f081107266f7a516c9b741e7654490cbe9
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date: Mon Oct 8 12:49:36 2012 +0000
fix for visual c++
git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@21226 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
src/device_attribute_numpy.hpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/device_attribute_numpy.hpp b/src/device_attribute_numpy.hpp
index 9dab76f..b593efe 100644
--- a/src/device_attribute_numpy.hpp
+++ b/src/device_attribute_numpy.hpp
@@ -225,7 +225,9 @@ namespace PyDeviceAttribute {
iter = (PyArrayIterObject *)PyArray_IterNew(array);
if (!iter)
throw_error_already_set();
- object iter_guard(handle<>(iter));
+
+ handle<> _h((PyObject *)iter);
+ object iter_guard(_h);
if (isImage) {
// Why not use PyArray_ITER_NEXT() instead of PyArray_ITER_GOTO()?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list