diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-08 15:41:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-10-08 23:29:49 +0900 |
commit | 9a90cd228466ec088d6f0da8d1aa065f03daa7c8 (patch) | |
tree | b4fc458cdfbdad102551c421e7469e560e2b9030 /compile.c | |
parent | d8b64eac55cf6c4b228b0969cd3abb0a6274de16 (diff) |
Cast via `uintptr_t` function pointer between object pointer
- ISO C forbids conversion of function pointer to object pointer type
- ISO C forbids conversion of object pointer to function pointer type
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9141,7 +9141,7 @@ compile_builtin_function_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NOD if (cconst) { typedef VALUE(*builtin_func0)(void *, VALUE); - VALUE const_val = (*(builtin_func0)bf->func_ptr)(NULL, Qnil); + VALUE const_val = (*(builtin_func0)(uintptr_t)bf->func_ptr)(NULL, Qnil); ADD_INSN1(ret, line_node, putobject, const_val); return COMPILE_OK; } |