mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 01:22:26 +02:00
Cast pointers to IVs instead of using GPOINTER_TO_INT() which casts them to
ints. Hopefully fixes 64bit architectures. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2978 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
39fc0f5ea1
commit
c764853132
2 changed files with 5 additions and 5 deletions
|
|
@ -97,7 +97,7 @@ static void perl_call_signal(PERL_SCRIPT_REC *script, SV *func,
|
|||
if (strcmp(rec->args[n], "string") == 0)
|
||||
perlarg = new_pv(arg);
|
||||
else if (strcmp(rec->args[n], "int") == 0)
|
||||
perlarg = newSViv(GPOINTER_TO_INT(arg));
|
||||
perlarg = newSViv((IV)arg);
|
||||
else if (strcmp(rec->args[n], "ulongptr") == 0)
|
||||
perlarg = newSViv(*(unsigned long *) arg);
|
||||
else if (strcmp(rec->args[n], "intptr") == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue