mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
reduce calling of strlen(); #301
This commit is contained in:
+1
-1
@@ -2987,7 +2987,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
mrb_str_buf_cat(mrb, result, "\"", strlen("\""));
|
||||
mrb_str_buf_cat(mrb, result, "\"", sizeof("\""));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user