Skip to content

Commit 4c0c5da

Browse files
committed
Fix a typo
1 parent 2c863ef commit 4c0c5da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/fiddle/conversions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ rb_fiddle_value_to_generic(int type, VALUE *src, fiddle_generic *dst)
209209
dst->pointer = NUM2PTR(rb_Integer(*src));
210210
break;
211211
case TYPE_CHAR:
212-
if (RB_TYPE_P(*src) == RUBY_T_STRING && RSTRING_LEN(*src) == 1) {
212+
if (RB_TYPE_P(*src, RUBY_T_STRING) && RSTRING_LEN(*src) == 1) {
213213
dst->schar = RSTRING_PTR(*src)[0];
214214
} else {
215215
dst->schar = (signed char)NUM2INT(*src);

0 commit comments

Comments
 (0)