diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-16 09:49:17 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-16 09:49:17 +0000 |
commit | f5b033cd4ee66a2fe3123573478eedf5612ffb33 (patch) | |
tree | 56b375096f8e16408998adbd7d26cb51a08dbb88 /ext/date/date_core.c | |
parent | 07784c78b95dc8cd88518387adb987433b37db61 (diff) | |
download | ruby-f5b033cd4ee66a2fe3123573478eedf5612ffb33.tar.gz |
* ext/date/date_tmx.h: offset in struct tmx_funcs is now int.
* ext/date/date_strftime.c: ditto.
* ext/date/date_core.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index d84d14c2bf..783fbd7748 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6813,10 +6813,10 @@ tmx_m_msecs(union DateData *x) return s; } -static VALUE +static int tmx_m_of(union DateData *x) { - return INT2FIX(m_of(x)); + return m_of(x); } static char * @@ -6842,7 +6842,7 @@ static struct tmx_funcs tmx_funcs = { (VALUE (*)(void *))m_sf_in_sec, (VALUE (*)(void *))tmx_m_secs, (VALUE (*)(void *))tmx_m_msecs, - (VALUE (*)(void *))tmx_m_of, + (int (*)(void *))tmx_m_of, (char *(*)(void *))tmx_m_zone }; @@ -8650,7 +8650,7 @@ dt_lite_jisx0301(int argc, VALUE *argv, VALUE self) static VALUE time_to_time(VALUE self) { - return rb_funcall(self, rb_intern("getlocal"), 0); + return f_getlocal(self); } /* |