summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-21 11:10:53 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-21 11:10:53 +0000
commitc25309de42fecd415f01e78e954de5f748cf70aa (patch)
tree77e645674fba0f15591a04a6c6b881df3c2ba3a5
parentfbabc5cf2b01783c35847b20f8512316ec2b1c3d (diff)
downloadruby-c25309de42fecd415f01e78e954de5f748cf70aa.tar.gz
ruby-c25309de42fecd415f01e78e954de5f748cf70aa.tar.xz
ruby-c25309de42fecd415f01e78e954de5f748cf70aa.zip
* lib/date.rb (marshal_load): initialize the cache.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/date.rb5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 98cf3c2d4..68e8b13f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jan 21 20:09:38 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (marshal_load): initialize the cache.
+
Mon Jan 21 19:42:42 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
* transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
diff --git a/lib/date.rb b/lib/date.rb
index 63d6324ee..63bb9cae1 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -1482,7 +1482,10 @@ class Date
def marshal_dump() [@ajd, @of, @sg] end
# Load from Marshall format.
- def marshal_load(a) @ajd, @of, @sg, = a end
+ def marshal_load(a)
+ @ajd, @of, @sg, = a
+ @__ca__ = {}
+ end
end