summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time
diff options
context:
space:
mode:
authorken-mu <[email protected]>2018-01-29 09:43:43 +0000
committerken-mu <[email protected]>2018-01-29 09:43:43 +0000
commita1b71b64b37131064b7dbbb04151640a1b16cf5c (patch)
tree4568a4b0a8daa6ed7855c24198d323e6e1676149 /mrbgems/mruby-time
parent6a2c0c6e2a2751ab663166410415151a24bfcd73 (diff)
downloadmruby-a1b71b64b37131064b7dbbb04151640a1b16cf5c.tar.gz
mruby-a1b71b64b37131064b7dbbb04151640a1b16cf5c.zip
mruby-time: remove ifdef for mktime error handling
Diffstat (limited to 'mrbgems/mruby-time')
-rw-r--r--mrbgems/mruby-time/src/time.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 062851918..cfd51ac63 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -384,11 +384,9 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday,
else {
nowsecs = mktime(&nowtime);
}
-#ifndef MRB_TIME_T_UINT
if (nowsecs == (time_t)-1) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time.");
}
-#endif
return time_alloc(mrb, (double)nowsecs, (double)ausec, timezone);
}