summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-01-21 03:02:52 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-01-21 03:02:52 -0800
commit7987619bedf30e1ff764599416282af07e096e65 (patch)
tree5d467103ba939c3cc5d278c5d93b59922c75abd2 /tasks
parent73fa0d6355353f622e4446075f98a02761f03118 (diff)
parentbefb830a4280cb4824489a4bd8f830d91b34fc2a (diff)
downloadmruby-7987619bedf30e1ff764599416282af07e096e65.tar.gz
mruby-7987619bedf30e1ff764599416282af07e096e65.zip
Merge pull request #760 from masuidrive/fixed_compat
Fixed 1.8 compatibility
Diffstat (limited to 'tasks')
-rw-r--r--tasks/ruby_ext.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/ruby_ext.rake b/tasks/ruby_ext.rake
index 22a8409d4..2536a2e4b 100644
--- a/tasks/ruby_ext.rake
+++ b/tasks/ruby_ext.rake
@@ -22,7 +22,11 @@ class String
end
str
else
- sprintf(self, params)
+ if params.is_a?(Array)
+ sprintf(self, *params)
+ else
+ sprintf(self, params)
+ end
end
end
end