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
1a4ea94b
Commit
1a4ea94b
authored
Aug 31, 2019
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `mrb_immediate_p(MRB_TT_FREE)` to return `false`; ref #4679
parent
d48a2190
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/mruby/boxing_nan.h
include/mruby/boxing_nan.h
+0
-1
include/mruby/boxing_no.h
include/mruby/boxing_no.h
+0
-1
include/mruby/value.h
include/mruby/value.h
+6
-4
No files found.
include/mruby/boxing_nan.h
View file @
1a4ea94b
...
...
@@ -20,7 +20,6 @@
#endif
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
#ifdef MRB_ENDIAN_BIG
#define MRB_ENDIAN_LOHI(a,b) a b
...
...
include/mruby/boxing_no.h
View file @
1a4ea94b
...
...
@@ -8,7 +8,6 @@
#define MRUBY_BOXING_NO_H
#define MRB_FIXNUM_SHIFT 0
#define MRB_TT_HAS_BASIC MRB_TT_OBJECT
union
mrb_value_union
{
#ifndef MRB_WITHOUT_FLOAT
...
...
include/mruby/value.h
View file @
1a4ea94b
...
...
@@ -108,13 +108,13 @@ static const unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
enum
mrb_vtype
{
MRB_TT_FALSE
=
0
,
/* 0 */
MRB_TT_
FRE
E
,
/* 1 */
MRB_TT_
TRUE
,
/* 2 */
MRB_TT_
TRU
E
,
/* 1 */
MRB_TT_
FLOAT
,
/* 2 */
MRB_TT_FIXNUM
,
/* 3 */
MRB_TT_SYMBOL
,
/* 4 */
MRB_TT_UNDEF
,
/* 5 */
MRB_TT_
FLOAT
,
/* 6 */
MRB_TT_
CPTR
,
/* 7 */
MRB_TT_
CPTR
,
/* 6 */
MRB_TT_
FREE
,
/* 7 */
MRB_TT_OBJECT
,
/* 8 */
MRB_TT_CLASS
,
/* 9 */
MRB_TT_MODULE
,
/* 10 */
...
...
@@ -161,6 +161,8 @@ typedef void mrb_value;
#include "boxing_no.h"
#endif
#define MRB_TT_HAS_BASIC MRB_TT_FREE
#ifndef mrb_immediate_p
#define mrb_immediate_p(o) (mrb_type(o) < MRB_TT_HAS_BASIC)
#endif
...
...
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