summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Process.hpp1
-rw-r--r--src/UCI.hpp.in4
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 <vector>
#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 {