summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/kernel')
-rw-r--r--sca-cpp/trunk/kernel/element.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-cpp/trunk/kernel/element.hpp b/sca-cpp/trunk/kernel/element.hpp
index fb21aa60ad..c69d3bbf07 100644
--- a/sca-cpp/trunk/kernel/element.hpp
+++ b/sca-cpp/trunk/kernel/element.hpp
@@ -200,7 +200,7 @@ const value valueToElement(const value& t) {
// Convert a single value to an attribute or an element
if (!isList(v)) {
if (substr(n, 0, 1) == atsign)
- return mklist<value>(attribute, substr(n, 1), v);
+ return mklist<value>(attribute, c_str(substr(n, 1)), v);
return mklist(element, n, v);
}