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
7ad53273
Commit
7ad53273
authored
Nov 01, 2018
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence Appveyor's VC compilation warnings.
parent
d68da042
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
mrbgems/mruby-pack/src/pack.c
mrbgems/mruby-pack/src/pack.c
+1
-1
mrbgems/mruby-sleep/src/mrb_sleep.c
mrbgems/mruby-sleep/src/mrb_sleep.c
+1
-1
mrbgems/mruby-string-ext/src/string.c
mrbgems/mruby-string-ext/src/string.c
+3
-2
src/vm.c
src/vm.c
+1
-1
No files found.
mrbgems/mruby-pack/src/pack.c
View file @
7ad53273
...
@@ -64,7 +64,7 @@ static int littleendian = 0;
...
@@ -64,7 +64,7 @@ static int littleendian = 0;
const
static
unsigned
char
base64chars
[]
=
const
static
unsigned
char
base64chars
[]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
static
signed
char
base64_dec_tab
[
128
];
static
un
signed
char
base64_dec_tab
[
128
];
static
int
static
int
...
...
mrbgems/mruby-sleep/src/mrb_sleep.c
View file @
7ad53273
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#ifdef _WIN32
#ifdef _WIN32
#include <windows.h>
#include <windows.h>
#define sleep(x) Sleep(x * 1000)
#define sleep(x) Sleep(x * 1000)
#define usleep(x) Sleep(((x)<1000) ? 1 : ((x)/1000))
#define usleep(x) Sleep((
DWORD)(
(x)<1000) ? 1 : ((x)/1000))
#else
#else
#include <unistd.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/time.h>
...
...
mrbgems/mruby-string-ext/src/string.c
View file @
7ad53273
...
@@ -279,7 +279,7 @@ static struct tr_pattern*
...
@@ -279,7 +279,7 @@ static struct tr_pattern*
tr_parse_pattern
(
mrb_state
*
mrb
,
struct
tr_pattern
*
ret
,
const
mrb_value
v_pattern
,
mrb_bool
flag_reverse_enable
)
tr_parse_pattern
(
mrb_state
*
mrb
,
struct
tr_pattern
*
ret
,
const
mrb_value
v_pattern
,
mrb_bool
flag_reverse_enable
)
{
{
const
char
*
pattern
=
RSTRING_PTR
(
v_pattern
);
const
char
*
pattern
=
RSTRING_PTR
(
v_pattern
);
int
pattern_length
=
RSTRING_LEN
(
v_pattern
);
mrb_
int
pattern_length
=
RSTRING_LEN
(
v_pattern
);
mrb_bool
flag_reverse
=
FALSE
;
mrb_bool
flag_reverse
=
FALSE
;
struct
tr_pattern
*
pat1
;
struct
tr_pattern
*
pat1
;
int
i
=
0
;
int
i
=
0
;
...
@@ -438,7 +438,8 @@ str_tr(mrb_state *mrb, mrb_value str, mrb_value p1, mrb_value p2, mrb_bool squee
...
@@ -438,7 +438,8 @@ str_tr(mrb_state *mrb, mrb_value str, mrb_value p1, mrb_value p2, mrb_bool squee
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"character (%S) out of range"
,
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"character (%S) out of range"
,
mrb_fixnum_value
((
mrb_int
)
c
));
mrb_fixnum_value
((
mrb_int
)
c
));
}
}
lastch
=
s
[
i
]
=
c
;
lastch
=
c
;
s
[
i
]
=
(
char
)
c
;
}
}
}
}
}
}
...
...
src/vm.c
View file @
7ad53273
...
@@ -186,7 +186,7 @@ stack_extend_alloc(mrb_state *mrb, mrb_int room)
...
@@ -186,7 +186,7 @@ stack_extend_alloc(mrb_state *mrb, mrb_int room)
if
(
off
>
size
)
size
=
off
;
if
(
off
>
size
)
size
=
off
;
#ifdef MRB_STACK_EXTEND_DOUBLING
#ifdef MRB_STACK_EXTEND_DOUBLING
if
(
room
<=
(
size_t
)
size
)
if
(
(
size_t
)
room
<=
size
)
size
*=
2
;
size
*=
2
;
else
else
size
+=
room
;
size
+=
room
;
...
...
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