Skip to content

Commit

Permalink
TIVarFile: fix var naming for complex type.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed May 31, 2024
1 parent 55b626e commit c125d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TIVarFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ namespace tivars
// TODO: again, properly handle names according to _type... (needs to be implemented by each type)
// Quick hack for now...
const auto& typeName = _type.getName();
if (typeName == "Real" || typeName == "Real" || typeName == "Program" || typeName == "ProtectedProgram")
if (typeName == "Real" || typeName == "Complex" || typeName == "Program" || typeName == "ProtectedProgram")
{
for (auto & c: newName) c = (char) toupper(c);
}
Expand Down

0 comments on commit c125d9d

Please sign in to comment.