summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-06-05 18:01:28 +0900
committerNobuyoshi Nakada <[email protected]>2024-06-05 18:01:28 +0900
commitf8e3dd4ec1afab4cd056029982229f3bbea006da ()
tree307925ee09f31e8b986ddd5b22251697d7f42c7e /rational.c
parentd7e558e3c48c213d0e8bedca4fb547db55613f7c (diff)
[Bug #20524] win32: Suppress GMP warning
``` C:\vcpkg\installed\x64-windows\include\gmp.h(2237): warning C4146: unary minus operator applied to unsigned type, result still unsigned ```
-rw-r--r--rational.c12
1 files changed, 9 insertions, 3 deletions
@@ -22,9 +22,6 @@
# define USE_GMP 0
#endif
#endif
-#if USE_GMP
-#include <gmp.h>
-#endif
#include "id.h"
#include "internal.h"
@@ -36,6 +33,15 @@
#include "internal/rational.h"
#include "ruby_assert.h"
#define ZERO INT2FIX(0)
#define ONE INT2FIX(1)
#define TWO INT2FIX(2)