Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
4b4622f7
Unverified
Commit
4b4622f7
authored
Apr 24, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time.c: `fixable_time_t_p` is not used with `MRB_NO_FLOAT`; #5421
parent
237f3339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mrbgems/mruby-time/src/time.c
mrbgems/mruby-time/src/time.c
+2
-0
No files found.
mrbgems/mruby-time/src/time.c
View file @
4b4622f7
...
...
@@ -226,6 +226,7 @@ typedef mrb_int mrb_sec;
(sizeof(time_t) <= 4 ? INT32_MAX : INT64_MAX) \
)
#ifndef MRB_NO_FLOAT
/* return true if time_t is fit in mrb_int */
static
mrb_bool
fixable_time_t_p
(
time_t
v
)
...
...
@@ -236,6 +237,7 @@ fixable_time_t_p(time_t v)
if
(
MRB_INT_MIN
>
(
mrb_int
)
v
)
return
FALSE
;
return
TRUE
;
}
#endif
static
time_t
mrb_to_time_t
(
mrb_state
*
mrb
,
mrb_value
obj
,
time_t
*
usec
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment