Take a const char * for the "z" specifier of mrb_get_args()

This commit is contained in:
dearblue
2025-07-20 21:01:06 +09:00
parent f72a32ad87
commit 3f27133639
+1 -1
View File
@@ -241,7 +241,7 @@ mrb_file_dirname(mrb_state *mrb, mrb_value klass)
static mrb_value
mrb_file_basename(mrb_state *mrb, mrb_value klass)
{
char *path;
const char *path;
const char *suffix = NULL;
mrb_get_args(mrb, "z|z", &path, &suffix);