summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 78c4c45a1f..2251547c54 100644
--- a/dln.c
+++ b/dln.c
@@ -1254,7 +1254,8 @@ static bool
dln_incompatible_library_p(void *handle)
{
void *ex = dlsym(handle, EXTERNAL_PREFIX"ruby_xmalloc");
- return ex && ex != ruby_xmalloc;
+ void *const fp = (void *)ruby_xmalloc;
+ return ex && ex != fp;
}
COMPILER_WARNING_POP
#endif