Skip to content

Commit

Permalink
Fix implicit size_t cast
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Sep 23, 2024
1 parent 451126d commit 7b02239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vitalrouter-mruby/src/vitalrouter-mruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ extern mrb_value vitalrouter_mrb_load(vitalrouter_mrb_ctx *ctx, vitalrouter_nstr
{
int ai = mrb_gc_arena_save(ctx->mrb);

mrb_value result = mrb_load_nstring(ctx->mrb, (const char *)source.bytes, source.length);
mrb_value result = mrb_load_nstring(ctx->mrb, (const char *)source.bytes, (size_t)source.length);
if (throw(ctx, -1)) {
mrb_gc_arena_restore(ctx->mrb, ai);
return mrb_nil_value();
Expand Down

0 comments on commit 7b02239

Please sign in to comment.