From 8ffceb67ba7060e7a1be1cec6749b03202b850ce Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 10 May 2023 06:24:59 +0200 Subject: [PATCH] Improve source code --- src/Process.hpp | 1 + src/UCI.hpp.in | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Process.hpp b/src/Process.hpp index e1f71ad..64340e4 100644 --- a/src/Process.hpp +++ b/src/Process.hpp @@ -16,6 +16,7 @@ public: virtual std::string ReadLine() = 0; /// @brief Write to engine stdin virtual void Write(std::string) = 0; + virtual ~Process(){}; }; struct FailedToStartEngine : public std::exception { diff --git a/src/UCI.hpp.in b/src/UCI.hpp.in index 67cabcf..dde3703 100644 --- a/src/UCI.hpp.in +++ b/src/UCI.hpp.in @@ -20,8 +20,8 @@ #include #define IS_OPT_PARAM(str) \ - ((str) == "name" || (str) == "type" | (str) == "default" || \ - (str) == "min" || (str) == "max" || (str) == "var") + (((str) == "name") || ((str) == "type") || ((str) == "default") || \ + ((str) == "min") || ((str) == "max") || ((str) == "var")) namespace uciadapter {