Prevent a compile error of clang's -Wformat-pedantic

```
  /github/workspace/src/proc.c:2023:65: error: format specifies type 'void *' but the argument has type 'const rb_namespace_t *' (aka 'const struct rb_namespace_struct *') [-Werror,-Wformat-pedantic]
   2023 |     rb_bug("Unexpected namespace on the method definition: %p", ns);
        |                                                            ~~   ^~
```
This commit is contained in:
Yusuke Endoh 2025-05-01 17:46:01 +09:00 committed by Satoshi Tagomori
parent e7e517499b
commit cf3e2bbad2

2
proc.c
View File

@ -2020,7 +2020,7 @@ method_namespace(VALUE obj)
if (!ns) return Qfalse;
if (ns->ns_object) return ns->ns_object;
// This should not happen
rb_bug("Unexpected namespace on the method definition: %p", ns);
rb_bug("Unexpected namespace on the method definition: %p", (void*) ns);
return Qtrue;
}