Commits

Anonymous committed e6b3d5d

Comments (0)

Files changed (1)

zipruby/ext/zipruby_zip_source_proc.c

       return -1;
     }
 
+
     if (TYPE(src) != T_STRING) {
-      return 0;
+      src = rb_funcall(src, rb_intern("to_s"), 0);
     }
 
     n = RSTRING_LEN(src);