summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/pathname.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d2bc622cce..b5bd805cee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 18 21:40:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#sub): suppress a warning.
+ [ruby-dev:38488]
+
Mon May 18 21:13:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/thread/thread.c (unlock_mutex_inner): should adjust join
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 5c723a7c20..7c16a0c249 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -260,7 +260,7 @@ class Pathname
ensure
Thread.current[:pathname_sub_matchdata] = old
end
- yield *args
+ yield(*args)
}
else
path = @path.sub(pattern, *rest)