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
81fc5ff4
Unverified
Commit
81fc5ff4
authored
Jul 05, 2020
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jul 05, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5029 from RoryO/true-eq-false
object_id of true, false, and undef are all 0
parents
97319697
57469584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/etc.c
src/etc.c
+4
-3
No files found.
src/etc.c
View file @
81fc5ff4
...
...
@@ -107,10 +107,11 @@ mrb_obj_id(mrb_value obj)
return
MakeID
(
0
);
/* not define */
case
MRB_TT_FALSE
:
if
(
mrb_nil_p
(
obj
))
return
MakeID
(
1
);
return
MakeID
(
0
);
return
MakeID
(
4
);
else
return
MakeID
(
0
);
case
MRB_TT_TRUE
:
return
MakeID
(
1
);
return
MakeID
(
2
);
case
MRB_TT_SYMBOL
:
return
MakeID
(
mrb_symbol
(
obj
));
case
MRB_TT_FIXNUM
:
...
...
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