summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/src/complex.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-06-21 10:24:44 +0900
committerGitHub <[email protected]>2021-06-21 10:24:44 +0900
commite893f805b10d4690dfd466eb0e6dd79f6fb49010 (patch)
tree85a51512c6e8da2a0aadc7568b91e9ae8dba4c5d /mrbgems/mruby-complex/src/complex.c
parentf678620a436aa015f9252858aa00112256ab0668 (diff)
parent0c5c04d7c8a64b10290c63c2d83b6055f99815f4 (diff)
downloadmruby-e893f805b10d4690dfd466eb0e6dd79f6fb49010.tar.gz
mruby-e893f805b10d4690dfd466eb0e6dd79f6fb49010.zip
Merge pull request #5486 from dearblue/alloc-castfree
Added `MRB_OBJ_ALLOC()` macro that does not require a cast
Diffstat (limited to 'mrbgems/mruby-complex/src/complex.c')
-rw-r--r--mrbgems/mruby-complex/src/complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/src/complex.c b/mrbgems/mruby-complex/src/complex.c
index 2a2f9c49b..286e7e38e 100644
--- a/mrbgems/mruby-complex/src/complex.c
+++ b/mrbgems/mruby-complex/src/complex.c
@@ -50,7 +50,7 @@ static struct RBasic*
complex_alloc(mrb_state *mrb, struct RClass *c, struct mrb_complex **p)
{
struct RComplex *s;
- s = (struct RComplex*)mrb_obj_alloc(mrb, MRB_TT_COMPLEX, c);
+ s = MRB_OBJ_ALLOC(mrb, MRB_TT_COMPLEX, c);
#ifdef COMPLEX_INLINE
*p = &s->r;
#else