Commit 1a185292 authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix test in DefineConstant of strings (the variable existence was tested in the…

fix test in DefineConstant of strings (the variable existence was tested in the map of numbers instead of strings, leading to a definition in all cases)
parent cec1af76
Pipeline #2581 passed with stage
in 57 minutes and 15 seconds
......@@ -7876,7 +7876,7 @@ yyreduce:
#line 1332 "Gmsh.y"
{
std::string key((yyvsp[(3) - (9)].c)), val((yyvsp[(6) - (9)].c));
if(!gmsh_yysymbols.count(key)){
if(!gmsh_yystringsymbols.count(key)){
Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions);
gmsh_yystringsymbols[key] = std::vector<std::string>(1, val);
}
......
......@@ -1331,7 +1331,7 @@ DefineConstants :
CharParameterOptionsOrNone '}'
{
std::string key($3), val($6);
if(!gmsh_yysymbols.count(key)){
if(!gmsh_yystringsymbols.count(key)){
Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions);
gmsh_yystringsymbols[key] = std::vector<std::string>(1, val);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment