diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-09 06:46:40 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-09 06:46:40 +0000 |
commit | 90ae69e93c78abebf13c9bb690e5cabf8cb3b017 (patch) | |
tree | 2a296d207cdaca296149bddcea43daf0639d10d8 /time.c | |
parent | 661f464d77677b39da0dd9167a1a3544b987aacc (diff) | |
download | ruby-90ae69e93c78abebf13c9bb690e5cabf8cb3b017.tar.gz ruby-90ae69e93c78abebf13c9bb690e5cabf8cb3b017.tar.xz ruby-90ae69e93c78abebf13c9bb690e5cabf8cb3b017.zip |
* pack.c (uv_to_utf8): change message to "out of range", since
negative values are not "too big". [ruby-dev21567]
* marshal.c (w_object): should pass the value of "weak" to
w_object(). [ruby-dev:21555] and [ruby-dev:21561]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1317,6 +1317,7 @@ time_mdump(time) char buf[8]; time_t t; int i; + VALUE str; GetTimeval(time, tobj); @@ -1344,7 +1345,13 @@ time_mdump(time) s = RSHIFT(s, 8); } - return rb_str_new(buf, 8); + str = rb_str_new(buf, 8); + if (FL_TEST(time, FL_EXIVAR)) { + rb_copy_generic_ivar(str, time); + FL_SET(str, FL_EXIVAR); + } + + return str; } static VALUE |