From 4a817f45e57ffa6bd9db1b987d3ebeb5d662d791 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Tue, 31 Dec 2013 16:26:10 -0500 Subject: [PATCH] wrap not check in parenthesis so the check is done correctly. --- binding-mri/binding-util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binding-mri/binding-util.cpp b/binding-mri/binding-util.cpp index 1a850e7..3a13e57 100644 --- a/binding-mri/binding-util.cpp +++ b/binding-mri/binding-util.cpp @@ -146,7 +146,7 @@ rb_get_args(int argc, VALUE *argv, const char *format, ...) VALUE *str = va_arg(ap, VALUE*); VALUE tmp = *arg; - if (!rb_type(tmp) == RUBY_T_STRING) + if (!(rb_type(tmp) == RUBY_T_STRING)) rb_raise(rb_eTypeError, "Argument %d: Expected string", argI); *str = tmp; @@ -164,7 +164,7 @@ rb_get_args(int argc, VALUE *argv, const char *format, ...) VALUE tmp = *arg; - if (!rb_type(tmp) == RUBY_T_STRING) + if (!(rb_type(tmp) == RUBY_T_STRING)) rb_raise(rb_eTypeError, "Argument %d: Expected string", argI); *s = RSTRING_PTR(tmp); @@ -182,7 +182,7 @@ rb_get_args(int argc, VALUE *argv, const char *format, ...) VALUE tmp = *arg++; - if (!rb_type(tmp) == RUBY_T_STRING) + if (!(rb_type(tmp) == RUBY_T_STRING)) rb_raise(rb_eTypeError, "Argument %d: Expected string", argI); *s = RSTRING_PTR(tmp);