mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: src\string.c(497): warning C4244: '=': conversion from 'mrb_int' to 'long', possible loss of data
This commit is contained in:
committed by
Tomasz Dabrowski
parent
6cde950017
commit
46ccabacf0
+1
-1
@@ -488,7 +488,7 @@ check_frozen(mrb_state *mrb, struct RString *s)
|
||||
static mrb_value
|
||||
str_replace(mrb_state *mrb, struct RString *s1, struct RString *s2)
|
||||
{
|
||||
long len;
|
||||
mrb_int len;
|
||||
|
||||
check_frozen(mrb, s1);
|
||||
if (s1 == s2) return mrb_obj_value(s1);
|
||||
|
||||
Reference in New Issue
Block a user