diff options
| author | Shadman <shadmansaleh3@gmail.com> | 2021-07-26 21:29:22 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 23:29:22 +0800 |
| commit | 2b2ec9550d63619b643b6b2f4609a3dd76861e1c (patch) | |
| tree | bc54dbab069df00f6183754717cd3a22b4444114 | |
| parent | 14ac9a31f84c7bd25b37c4ae6ad133572a5df3a7 (diff) | |
| download | yuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.tar.gz yuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.tar.bz2 yuescript-2b2ec9550d63619b643b6b2f4609a3dd76861e1c.zip | |
Fix: yue -- not stoping read at EOF (#60)
Diffstat (limited to '')
| -rw-r--r-- | src/yue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yue.cpp b/src/yue.cpp index b5f91ff..bf0ac24 100644 --- a/src/yue.cpp +++ b/src/yue.cpp | |||
| @@ -271,7 +271,7 @@ int main(int narg, const char** args) { | |||
| 271 | } | 271 | } |
| 272 | char ch; | 272 | char ch; |
| 273 | std::string codes; | 273 | std::string codes; |
| 274 | while ((ch = std::cin.get()) != EOF) { | 274 | while ((ch = std::cin.get()) && !std::cin.eof()) { |
| 275 | codes += ch; | 275 | codes += ch; |
| 276 | } | 276 | } |
| 277 | yue::YueConfig conf; | 277 | yue::YueConfig conf; |
