From dd5dd821aa17668ac9184a3d554b9309c7d7c041 Mon Sep 17 00:00:00 2001 From: Mitchell Blank Jr Date: Sun, 20 May 2012 20:38:04 -0700 Subject: Use integer constants to initialize mrb_int As per monaka's comment here... https://github.com/mruby/mruby/pull/175 ...changing these initializations of mrb_int values to use integer constants --- src/time.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/time.c') diff --git a/src/time.c b/src/time.c index 7914d64af..8e306ed36 100644 --- a/src/time.c +++ b/src/time.c @@ -266,8 +266,8 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday, static mrb_value mrb_time_gm(mrb_state *mrb, mrb_value self) { - mrb_int ayear = 0.0, amonth = 1.0, aday = 1.0, ahour = 0.0, - amin = 0.0, asec = 0.0, ausec = 0.0; + mrb_int ayear = 0, amonth = 1, aday = 1, ahour = 0, + amin = 0, asec = 0, ausec = 0; mrb_get_args(mrb, "iiiiiii", &ayear, &amonth, &aday, &ahour, &amin, &asec, &ausec); @@ -281,8 +281,8 @@ mrb_time_gm(mrb_state *mrb, mrb_value self) static mrb_value mrb_time_local(mrb_state *mrb, mrb_value self) { - mrb_int ayear = 0.0, amonth = 1.0, aday = 1.0, ahour = 0.0, - amin = 0.0, asec = 0.0, ausec = 0.0; + mrb_int ayear = 0, amonth = 1, aday = 1, ahour = 0, + amin = 0, asec = 0, ausec = 0; mrb_get_args(mrb, "iiiiiii", &ayear, &amonth, &aday, &ahour, &amin, &asec, &ausec); -- cgit v1.2.3