From 16ac52200a768d8f0e93896ec3fa174e825f2f24 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 5 Feb 2023 13:21:30 +0000 Subject: fix broken --- api/lib/numeric.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'api') diff --git a/api/lib/numeric.h b/api/lib/numeric.h index db6c777..2b724e0 100644 --- a/api/lib/numeric.h +++ b/api/lib/numeric.h @@ -1,16 +1,17 @@ #pragma once +#pragma GCC diagnostic ignored "-Wgnu-statement-expression" #define min(x, y) \ ({ \ - typeof (x) _x = (x); \ - typeof (y) _y = (y); \ - _x > _y ? _x : _y; \ + __typeof__ (x) _x = (x); \ + __typeof__ (y) _y = (y); \ + _x < _y ? _x : _y; \ }) #define max(x, y) \ ({ \ - typeof (x) _x = (x); \ - typeof (y) _y = (y); \ - _x < _y ? _x : _y; \ + __typeof__ (x) _x = (x); \ + __typeof__ (y) _y = (y); \ + _x > _y ? _x : _y; \ }) -- cgit v1.3.1-1-g115d