mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1336 from carsonmcdonald/warnfix3
More unsigned signed warning fixes
This commit is contained in:
+3
-2
@@ -59,7 +59,7 @@ typedef struct scope {
|
||||
int icapa;
|
||||
|
||||
mrb_irep *irep;
|
||||
int pcapa;
|
||||
size_t pcapa;
|
||||
int scapa;
|
||||
|
||||
int nlocals;
|
||||
@@ -2505,7 +2505,8 @@ codedump(mrb_state *mrb, int n)
|
||||
{
|
||||
#ifdef ENABLE_STDIO
|
||||
mrb_irep *irep = mrb->irep[n];
|
||||
int i, ai;
|
||||
uint32_t i;
|
||||
int ai;
|
||||
mrb_code c;
|
||||
|
||||
if (!irep) return;
|
||||
|
||||
+3
-3
@@ -364,13 +364,13 @@ write_lineno_record(mrb_state *mrb, mrb_irep *irep, uint8_t* bin)
|
||||
}
|
||||
|
||||
static int
|
||||
mrb_write_section_lineno(mrb_state *mrb, int start_index, uint8_t *bin)
|
||||
mrb_write_section_lineno(mrb_state *mrb, size_t start_index, uint8_t *bin)
|
||||
{
|
||||
int irep_no;
|
||||
size_t irep_no;
|
||||
uint32_t section_size = 0, rlen = 0; /* size of irep record */
|
||||
uint8_t *cur = bin;
|
||||
|
||||
if (mrb == NULL || start_index < 0 || start_index >= mrb->irep_len || bin == NULL) {
|
||||
if (mrb == NULL || start_index >= mrb->irep_len || bin == NULL) {
|
||||
return MRB_DUMP_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user