summaryrefslogtreecommitdiffhomepage
path: root/src/print.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-11-04 05:02:39 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-11-04 05:02:39 +0900
commitd2d2e9f5f9267c2583aa542b4066d109a07b742e (patch)
treec9c5747bfbb489c063ad72e4d68b0de3e818ac1f /src/print.c
parent051777dc5de7e16ab28d39530fc0bb8101323e2c (diff)
downloadmruby-d2d2e9f5f9267c2583aa542b4066d109a07b742e.tar.gz
mruby-d2d2e9f5f9267c2583aa542b4066d109a07b742e.zip
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index e6805edbf..3b762e05f 100644
--- a/src/print.c
+++ b/src/print.c
@@ -16,7 +16,7 @@ printstr(mrb_state *mrb, mrb_value obj)
char *s;
int len;
- if (mrb_type(obj) == MRB_TT_STRING) {
+ if (mrb_string_p(obj)) {
str = mrb_str_ptr(obj);
s = str->ptr;
len = str->len;