From b3b3fc2caf409f8c8ba523bbb3519af13b17e66e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 30 Aug 2021 01:52:34 +0300 Subject: [PATCH] Force correct conversion of symbols MSVC attempts to use the conversion operator in Symbol rather than Value's constructor. --- source/binaryparser.cpp | 2 +- source/statement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/binaryparser.cpp b/source/binaryparser.cpp index e4282ae..8e16498 100644 --- a/source/binaryparser.cpp +++ b/source/binaryparser.cpp @@ -62,7 +62,7 @@ Statement BinaryParser::parse() result.args.push_back(parse_bool()); break; case SymbolType::signature: - result.args.push_back(parse_symbol()); + result.args.push_back(Value(parse_symbol())); break; } } diff --git a/source/statement.cpp b/source/statement.cpp index baa9054..e6b31a7 100644 --- a/source/statement.cpp +++ b/source/statement.cpp @@ -52,7 +52,7 @@ Statement &Statement::append_from_token(const Token &token) else if(token.str=="false") return append(false); else - return append(Symbol(token.str)); + return append(Value(Symbol(token.str))); } else throw invalid_argument("Statement::append_from_token"); -- 2.43.0