summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-04-08 13:28:13 +0900
committerGitHub <noreply@github.com>2020-04-08 13:28:13 +0900
commit9e6e39c3512f7a962c44dc3729c98a0f8be90341 (patch)
tree901a22676d54d78240e450b64a8cd06eb1703910 /rational.c
parent5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff)
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Notes
Notes: Merged-By: shyouhei <shyouhei@ruby-lang.org>
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rational.c b/rational.c
index 1cd4ecc..b828ec1 100644
--- a/rational.c
+++ b/rational.c
@@ -5,7 +5,7 @@
which is written in ruby.
*/
-#include "ruby/config.h"
+#include "ruby/3/config.h"
#include <ctype.h>
#include <float.h>
@@ -24,7 +24,6 @@
#include "id.h"
#include "internal.h"
#include "internal/complex.h"
-#include "internal/error.h"
#include "internal/gc.h"
#include "internal/numeric.h"
#include "internal/object.h"
@@ -404,7 +403,7 @@ nurat_s_new_internal(VALUE klass, VALUE num, VALUE den)
RATIONAL_SET_NUM((VALUE)obj, num);
RATIONAL_SET_DEN((VALUE)obj, den);
- OBJ_FREEZE_RAW(obj);
+ OBJ_FREEZE_RAW((VALUE)obj);
return (VALUE)obj;
}