diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/date.rb | 5 |
2 files changed, 8 insertions, 1 deletions
@@ -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 63d6324eef..63bb9cae15 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 |