summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'node_dump.c')
-rw-r--r--node_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c
index bf13e6d5d1..c4195d571c 100644
--- a/node_dump.c
+++ b/node_dump.c
@@ -10,6 +10,7 @@
**********************************************************************/
#include "internal.h"
+#include "internal/class.h"
#include "internal/hash.h"
#include "internal/ruby_parser.h"
#include "internal/variable.h"
@@ -89,7 +90,7 @@ rb_dump_literal(VALUE lit)
switch (RB_BUILTIN_TYPE(lit)) {
case T_CLASS: case T_MODULE: case T_ICLASS:
str = rb_class_path(lit);
- if (FL_TEST(lit, FL_SINGLETON)) {
+ if (RCLASS_SINGLETON_P(lit)) {
str = rb_sprintf("<%"PRIsVALUE">", str);
}
return str;