From c125d9d6dac362c8a1cb6d9e940e8efec0585a86 Mon Sep 17 00:00:00 2001 From: Adrien Bertrand Date: Fri, 31 May 2024 11:05:31 +0200 Subject: [PATCH] TIVarFile: fix var naming for complex type. --- src/TIVarFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TIVarFile.cpp b/src/TIVarFile.cpp index 273399c..2709b60 100644 --- a/src/TIVarFile.cpp +++ b/src/TIVarFile.cpp @@ -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); }