Skip to content

Commit

Permalink
Fixed ruby string typemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Sep 23, 2012
1 parent e0a93ad commit 2250ce5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interfaces/ruby_modular/swig_typemaps.i
Expand Up @@ -182,6 +182,7 @@ TYPEMAP_SGMATRIX(float64_t, NUM2DBL, rb_float_new)

for (i = 0; i < size; i++) {
VALUE arr = rb_ary_entry($input, i);
new (&strings[i]) SGString<SGTYPE>();
if (TYPE(arr) == T_STRING) {
len = RSTRING_LEN(arr);
const char *str = StringValuePtr(arr);
Expand Down

0 comments on commit 2250ce5

Please sign in to comment.