summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-08-14 05:45:23 (GMT)
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-15 03:09:26 (GMT)
commitff30358d13d24d8202f2717c43700be70bdd49d3 (patch)
tree32757f4895a67fefcfb4830e40e2206a7ac388f7 /rational.c
parent72d0f2f0e0546a4c7c3b9ec85d3f67a36e9c5038 (diff)
RARRAY_AREF: convert into an inline function
RARRAY_AREF has been a macro for reasons. We might not be able to change that for public APIs, but why not relax the situation internally to make it an inline function.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3419
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rational.c b/rational.c
index 967cdce..aa90342 100644
--- a/rational.c
+++ b/rational.c
@@ -24,6 +24,7 @@
#define NDEBUG
#include "id.h"
#include "internal.h"
+#include "internal/array.h"
#include "internal/complex.h"
#include "internal/gc.h"
#include "internal/numeric.h"