Skip to content

Commit 98b14c3

Browse files
committed
Merge pull request DeNA#62 from datamoeras/master
minor bugfix in perl interface: filter specification
2 parents 06528ac + 64aa248 commit 98b14c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl-Net-HandlerSocket/HandlerSocket.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ sv_get_string_ref(SV *sv)
146146
static IV
147147
sv_get_iv(SV *sv)
148148
{
149-
if (sv == 0 || !SvIOK(sv)) {
149+
if (sv == 0 || ( !SvIOK(sv) && !SvPOK(sv) ) ) {
150150
return 0;
151151
}
152152
return SvIV(sv);

0 commit comments

Comments
 (0)