Merge #8
This commit is contained in:
commit
a0a27889a3
22 changed files with 602 additions and 100 deletions
|
@ -94,7 +94,7 @@ void raiseRbExc(const Exception &exc)
|
|||
RbData *data = getRbData();
|
||||
VALUE excClass = data->exc[excToRbExc[exc.type]];
|
||||
|
||||
rb_raise(excClass, exc.msg.c_str());
|
||||
rb_raise(excClass, "%s", exc.msg.c_str());
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -148,7 +148,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;
|
||||
|
@ -167,7 +167,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);
|
||||
|
@ -186,7 +186,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue