Skip to content

Commit 6d7ac47

Browse files
committed
Rather than get the Z80 class, define it.
1 parent 6c623b1 commit 6d7ac47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/z80/z80.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ static VALUE Z80__alloc(VALUE klass)
624624

625625
void Init_z80(void)
626626
{
627-
VALUE module, klass = rb_const_get(rb_cObject, rb_intern("Z80"));
627+
VALUE module, klass = rb_define_class("Z80", rb_cObject);
628628

629629
rb_define_alloc_func(klass, Z80__alloc);
630630

0 commit comments

Comments
 (0)