* ext/date/date_core.c (date_strftime_internal): removed meaningless braces.

* ext/date/date_core.c (gengo): the value should be int.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2011-06-25 16:03:11 +00:00
Родитель 64fd7d8785
Коммит 3380f2ff6e
2 изменённых файлов: 45 добавлений и 42 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun Jun 26 01:00:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_core.c (date_strftime_internal): removed meaningless braces.
* ext/date/date_core.c (gengo): the value should be int.
Sat Jun 25 23:45:30 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* vm_insnhelper.c (vm_search_superclass): avoid control frame

Просмотреть файл

@ -6651,7 +6651,6 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self,
const char *default_fmt,
void (*func)(VALUE, struct tmx *))
{
{
VALUE vfmt;
const char *fmt;
long len;
@ -6701,7 +6700,6 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self,
rb_enc_copy(str, vfmt);
OBJ_INFECT(str, vfmt);
return str;
}
}
/*
@ -6972,7 +6970,7 @@ d_lite_httpdate(VALUE self)
return strftimev("%a, %d %b %Y %T GMT", dup, set_tmx);
}
static VALUE
static int
gengo(VALUE jd, VALUE y, VALUE *a)
{
if (f_lt_p(jd, INT2FIX(2405160)))