From 1a42a06df4ac472c69f6c99e878b6c86d10d3bf8 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 5 Jun 2009 16:14:33 +0000 Subject: [PATCH] Fix semantic error in string comparisons --- wesley/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wesley/main.cpp b/wesley/main.cpp index 58bcd71..1c062b0 100644 --- a/wesley/main.cpp +++ b/wesley/main.cpp @@ -442,7 +442,7 @@ Boxed_Value evaluate_string(Lexer &lexer, Rule &parser, BoxedCPP_System &ss, con value = eval_token(ss, parent); } catch (ParserError &pe) { - if (filename != "__EVAL__") { + if (filename != std::string("__EVAL__")) { std::cout << "Parsing error: \"" << pe.reason << "\" in '" << pe.location->filename << "' line: " << pe.location->start.line << std::endl; } else { @@ -450,7 +450,7 @@ Boxed_Value evaluate_string(Lexer &lexer, Rule &parser, BoxedCPP_System &ss, con } } catch (EvalError &ee) { - if (filename != "__EVAL__") { + if (filename != std::string("__EVAL__")) { std::cout << "Eval error: \"" << ee.reason << "\" in '" << ee.location->filename << "' line: " << ee.location->start.line << std::endl; } else {