Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: accept _both_ numbers and strings as offset parameter in filter …
…specification.
  • Loading branch information
Raoul Zwart committed Aug 7, 2011
commit 64aa24849988c2e69b59593e0763b4c4e79b2617
2 changes: 1 addition & 1 deletion perl-Net-HandlerSocket/HandlerSocket.xs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ sv_get_string_ref(SV *sv)
static IV
sv_get_iv(SV *sv)
{
if (sv == 0 || !SvIOK(sv) || !SvPOK(sv)) {
if (sv == 0 || ( !SvIOK(sv) && !SvPOK(sv) ) ) {
return 0;
}
return SvIV(sv);
Expand Down