From f3083f22e96f526a2c969199b9ea0c0f359cd3f7 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sat, 17 Aug 2024 19:30:51 -0500 Subject: [PATCH] fix windows compile error --- cplusplus/src/include/utils.hpp | 2 +- cplusplus/test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cplusplus/src/include/utils.hpp b/cplusplus/src/include/utils.hpp index 1c0039a3..1ae1aa98 100644 --- a/cplusplus/src/include/utils.hpp +++ b/cplusplus/src/include/utils.hpp @@ -72,7 +72,7 @@ std::string get_data_file(const std::string &name) { } typedef enum { - ERROR, + ERR, INT8, INT16, INT32, diff --git a/cplusplus/test.cpp b/cplusplus/test.cpp index 628edd4f..cd33d48a 100644 --- a/cplusplus/test.cpp +++ b/cplusplus/test.cpp @@ -76,7 +76,7 @@ void test_euler_answer() { std::string sresult; std::ostringstream oss; switch (answer.type) { - case ERROR: + case ERR: TEST_FAIL_MESSAGE("Unknown answer type. This should be unreachable."); case INT8: iresult = ((int8_t (*)()) key.func)();