aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index be00744..83c3a81 100644
--- a/main.cpp
+++ b/main.cpp
@@ -67,12 +67,7 @@ bool parse_stream(auto &fth, std::istream& str, bool say_okay)
while (str.good()) {
std::getline(str, line);
if (!line.empty()) {
- for (auto& ch : line) {
- if (ch >= 'a' && ch <= 'z')
- ch = ch - 'a' + 'A';
- }
-
- if (line == "BYE")
+ if (sforth::isequal(line, "bye"))
return true;
try {