scilab: fix issue #755

This commit is contained in:
Simon Marchetto 2016-07-29 11:52:26 +02:00
commit 95a5def328
4 changed files with 28 additions and 2 deletions

View file

@ -664,7 +664,7 @@ public:
if (isConstant || isEnum) {
if (isEnum) {
Setattr(node, "type", "double");
constantValue = Getattr(node, "enumvalue");
constantValue = Getattr(node, "value");
}
constantTypemap = Swig_typemap_lookup("scilabconstcode", node, nodeName, 0);