mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Silence Appveyor's VC compilation warnings.
This commit is contained in:
@@ -64,7 +64,7 @@ static int littleendian = 0;
|
||||
|
||||
const static unsigned char base64chars[] =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
static signed char base64_dec_tab[128];
|
||||
static unsigned char base64_dec_tab[128];
|
||||
|
||||
|
||||
static int
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#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
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
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;
|
||||
struct tr_pattern *pat1;
|
||||
int i = 0;
|
||||
@@ -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_fixnum_value((mrb_int)c));
|
||||
}
|
||||
lastch = s[i] = c;
|
||||
lastch = c;
|
||||
s[i] = (char)c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user