mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: mrbgems\mruby-string-ext\src\string.c(38): warning C4244: '=': conversion from 'mrb_int' to 'char', possible loss of data
This commit is contained in:
committed by
Tomasz Dabrowski
parent
a94525d4ea
commit
d3819620ce
@@ -35,7 +35,7 @@ mrb_str_setbyte(mrb_state *mrb, mrb_value str)
|
||||
|
||||
mrb_str_modify(mrb, mrb_str_ptr(str));
|
||||
byte &= 0xff;
|
||||
RSTRING_PTR(str)[pos] = byte;
|
||||
RSTRING_PTR(str)[pos] = (unsigned char)byte;
|
||||
return mrb_fixnum_value((unsigned char)byte);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user