Skip to content

Commit 017b13b

Browse files
committed
fix type of S_lockcnt_dec
SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly. Should fix this ASan error: scope.c:1543:13: runtime error: call to function S_lockcnt_dec through pointer to incorrect function type 'void (*)(struct interpreter *, void *)'
1 parent 5b45802 commit 017b13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perlio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ typedef struct {
28722872
} PerlIOUnix;
28732873

28742874
static void
2875-
S_lockcnt_dec(pTHX_ const void* f)
2875+
S_lockcnt_dec(pTHX_ void* f)
28762876
{
28772877
#ifndef PERL_IMPLICIT_SYS
28782878
PERL_UNUSED_CONTEXT;

0 commit comments

Comments
 (0)