1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Fix static strings in names

This commit is contained in:
A. R. Shajii 2021-12-20 14:16:20 -05:00
parent 785b280000
commit d7f62872cc

View File

@ -47,7 +47,7 @@ std::string StaticValue::toString() const {
if (!evaluated)
return type == StaticValue::STRING ? "str" : "int";
return type == StaticValue::STRING
? "\"" + escape(std::get<std::string>(value)) + "\""
? "'" + escape(std::get<std::string>(value)) + "'"
: std::to_string(std::get<int64_t>(value));
}
int64_t StaticValue::getInt() const {