From 9892dc774515d763d80b1314749c165c3b308b7d Mon Sep 17 00:00:00 2001 From: OmniaX Date: Mon, 2 Sep 2024 09:58:37 +0200 Subject: [PATCH] Fixed a bug in CONVERT_1D_2D() macro (in Defines.hpp) --- build.nr | 2 +- src/ostd/Defines.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.nr b/build.nr index eb804fd..58d8972 100644 --- a/build.nr +++ b/build.nr @@ -1 +1 @@ -1864 +1866 diff --git a/src/ostd/Defines.hpp b/src/ostd/Defines.hpp index 3743a5d..3b03a70 100755 --- a/src/ostd/Defines.hpp +++ b/src/ostd/Defines.hpp @@ -57,7 +57,7 @@ #define MAX(n1, n2) std::max(n1, n2) #define MIN(n1, n2) std::min(n1, n2) #define PROPORTION(w, x, y) ((x * w) / y) -#define CONVERT_1D_2D(i, width) IPoint(i % width, i / width) +#define CONVERT_1D_2D(i, width) ostd::IPoint(i % width, i / width) #define CONVERT_2D_1D(x, y, width) (x + width * y) #define PRINT(data) std::cout << data #define PRINTLN(data) std::cout << data << "\n"