From e2ee6f937741907ddb958dbf2917c18bb2dcb5a6 Mon Sep 17 00:00:00 2001 From: Totto16 Date: Wed, 6 Nov 2024 00:58:55 +0100 Subject: [PATCH] fic: adapt upstream changes see https://github.com/OpenBrickProtocolFoundation/oopetris/pull/203 --- src/c_wrapper/wrapper.cpp | 2 +- src/c_wrapper/wrapper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c_wrapper/wrapper.cpp b/src/c_wrapper/wrapper.cpp index 711d28c..accbac6 100644 --- a/src/c_wrapper/wrapper.cpp +++ b/src/c_wrapper/wrapper.cpp @@ -101,7 +101,7 @@ static OOPetrisAdditionalInformationField* information_value_to_c(const recorder } return std::visit( - helper::overloaded{ [return_value](const std::string& value) -> OOPetrisAdditionalInformationField* { + helper::Overloaded{ [return_value](const std::string& value) -> OOPetrisAdditionalInformationField* { auto* string = static_cast(OOPETRIS_MALLOC(value.size() + 1)); if (string == nullptr) { diff --git a/src/c_wrapper/wrapper.h b/src/c_wrapper/wrapper.h index 8e6fe27..1811fe6 100644 --- a/src/c_wrapper/wrapper.h +++ b/src/c_wrapper/wrapper.h @@ -147,8 +147,8 @@ typedef struct { } OOPetrisTetrionRecord; typedef struct { - uint8_t x; - uint8_t y; + int8_t x; + int8_t y; } OOPetrisMinoPosition;