From f28e0b01296dd399aac8453126d513ec06714151 Mon Sep 17 00:00:00 2001 From: "h@di" Date: Fri, 3 Aug 2018 17:25:32 +0430 Subject: [PATCH] Change error output stream to stderr --- src/main/cpp/Makefile | 2 +- src/main/cpp/tiv.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cpp/Makefile b/src/main/cpp/Makefile index eb89e2d..8169697 100644 --- a/src/main/cpp/Makefile +++ b/src/main/cpp/Makefile @@ -1,4 +1,4 @@ -CXX=g++-8 +CXX=g++ default: tiv diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index 783723c..8a04581 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -362,7 +362,7 @@ void emitCodepoint(int codepoint) { std::cout << (char) (0x80 | ((codepoint >> 6) & 0x3f)); std::cout << (char) (0x80 | (codepoint & 0x3f)); } else { - std::cout << "ERROR"; + std::cerr << "ERROR"; } }