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:
parent
785b280000
commit
d7f62872cc
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user