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
a657117e
Commit
a657117e
authored
Sep 01, 2018
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid warning in MSVC compilation.
parent
20c0c633
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
mrbgems/mruby-compiler/core/codegen.c
mrbgems/mruby-compiler/core/codegen.c
+3
-3
mrbgems/mruby-socket/test/sockettest.c
mrbgems/mruby-socket/test/sockettest.c
+1
-0
src/vm.c
src/vm.c
+2
-2
No files found.
mrbgems/mruby-compiler/core/codegen.c
View file @
a657117e
...
...
@@ -2378,9 +2378,9 @@ codegen(codegen_scope *s, node *tree, int val)
#endif
{
if
(
i
==
-
1
)
genop_1
(
s
,
OP_LOADI__1
,
cursp
());
else
if
(
i
<
0
)
genop_2
(
s
,
OP_LOADINEG
,
cursp
(),
-
i
);
else
if
(
i
<
8
)
genop_1
(
s
,
OP_LOADI_0
+
i
,
cursp
());
else
if
(
i
<=
0xffff
)
genop_2
(
s
,
OP_LOADI
,
cursp
(),
i
);
else
if
(
i
<
0
)
genop_2
(
s
,
OP_LOADINEG
,
cursp
(),
(
uint16_t
)
-
i
);
else
if
(
i
<
8
)
genop_1
(
s
,
OP_LOADI_0
+
(
uint8_t
)
i
,
cursp
());
else
if
(
i
<=
0xffff
)
genop_2
(
s
,
OP_LOADI
,
cursp
(),
(
uint16_t
)
i
);
else
{
int
off
=
new_lit
(
s
,
mrb_fixnum_value
(
i
));
genop_2
(
s
,
OP_LOADL
,
cursp
(),
off
);
...
...
mrbgems/mruby-socket/test/sockettest.c
View file @
a657117e
...
...
@@ -12,6 +12,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#define open _open
#define close _close
#define unlink _unlink
...
...
src/vm.c
View file @
a657117e
...
...
@@ -176,7 +176,7 @@ envadjust(mrb_state *mrb, mrb_value *oldbase, mrb_value *newbase, size_t oldsize
/** def rec ; $deep =+ 1 ; if $deep > 1000 ; return 0 ; end ; rec ; end */
static
void
stack_extend_alloc
(
mrb_state
*
mrb
,
int
room
)
stack_extend_alloc
(
mrb_state
*
mrb
,
mrb_
int
room
)
{
mrb_value
*
oldbase
=
mrb
->
c
->
stbase
;
mrb_value
*
newstack
;
...
...
@@ -333,7 +333,7 @@ ecall(mrb_state *mrb)
struct
REnv
*
env
;
ptrdiff_t
cioff
;
int
ai
=
mrb_gc_arena_save
(
mrb
);
uint
8
_t
i
=
--
c
->
eidx
;
uint
16
_t
i
=
--
c
->
eidx
;
int
nregs
;
if
(
i
<
0
)
return
;
...
...
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