diff options
| author | Mitchell Blank Jr <[email protected]> | 2012-05-20 20:38:04 -0700 |
|---|---|---|
| committer | Mitchell Blank Jr <[email protected]> | 2012-05-20 20:38:04 -0700 |
| commit | dd5dd821aa17668ac9184a3d554b9309c7d7c041 (patch) | |
| tree | bc1eb0b8e449546ebc5039ec50f6278c76fb58b2 /src | |
| parent | 2120e5cbd66afe5b04502ea198d9d589d14c2c68 (diff) | |
| download | mruby-dd5dd821aa17668ac9184a3d554b9309c7d7c041.tar.gz mruby-dd5dd821aa17668ac9184a3d554b9309c7d7c041.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/time.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
