diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-31 08:08:46 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-31 08:08:46 +0000 |
| commit | 2a67022c4fa43af0b0db2d482c688f3f12d37455 (patch) | |
| tree | 1a6f90a433512f1f5be08298ab8ccee9feb2d9ba /time.c | |
| parent | 5e650dd1c2176f0c7ed7d18f3e369e9fea72b125 (diff) | |
| download | ruby-2a67022c4fa43af0b0db2d482c688f3f12d37455.tar.gz ruby-2a67022c4fa43af0b0db2d482c688f3f12d37455.tar.xz ruby-2a67022c4fa43af0b0db2d482c688f3f12d37455.zip | |
* time.c (time_dup): duplicate the class of original time.
[ruby-core:09357]
* lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate):
should respect subclasses. [ruby-core:09357]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
| -rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1019,7 +1019,7 @@ time_init_copy(VALUE copy, VALUE time) static VALUE time_dup(VALUE time) { - VALUE dup = time_s_alloc(rb_cTime); + VALUE dup = time_s_alloc(CLASS_OF(time)); time_init_copy(dup, time); return dup; } |
