[pytango] 111/483: fixes #3511509
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:30 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 216aabbe59d258797f4c2f5b973b8605c4096caf
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date: Mon Mar 26 17:26:44 2012 +0000
fixes #3511509
git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@19838 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
src/server/attribute.cpp | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/server/attribute.cpp b/src/server/attribute.cpp
index 8bcc73b..06444c6 100644
--- a/src/server/attribute.cpp
+++ b/src/server/attribute.cpp
@@ -237,18 +237,19 @@ namespace PyAttribute
extract<Tango::DevString> val_str(data_str.ptr());
if (!val_str.check())
{
- throw_wrong_python_data_type(att.get_name(), "set_value()");
+ throw_wrong_python_data_type(att.get_name(), "set_value1()");
}
- extract<Tango::DevUChar*> val(data.ptr());
+ extract<Tango::DevString> val(data.ptr());
if (!val.check())
{
- throw_wrong_python_data_type(att.get_name(), "set_value()");
+ throw_wrong_python_data_type(att.get_name(), "set_value2()");
}
PYTG_NEW_TIME_FROM_DOUBLE(t, tv);
Tango::DevString val_str_real = val_str;
- Tango::DevUChar *val_real = val;
- att.set_value_date_quality(&val_str_real, val_real, (long)len(data), tv, quality);
+ Tango::DevString val_real = val;
+ att.set_value_date_quality(&val_str_real, (Tango::DevUChar*)val_real,
+ (long)len(data), tv, quality);
}
template<long tangoTypeConst>
--
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