about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiP2q.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiP2q.pm')
-rw-r--r--lib/PublicInbox/LeiP2q.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiP2q.pm b/lib/PublicInbox/LeiP2q.pm
index e7ddc852..c5718603 100644
--- a/lib/PublicInbox/LeiP2q.pm
+++ b/lib/PublicInbox/LeiP2q.pm
@@ -144,7 +144,7 @@ sub do_p2q { # via wq_do
                         my $end = ($pfx =~ s/([0-9\*]+)\z//) ? $1 : '';
                         my $x = delete($lei->{qterms}->{$pfx}) or next;
                         my $star = $end =~ tr/*//d ? '*' : '';
-                        my $min_len = ($end // 0) + 0;
+                        my $min_len = ($end || 0) + 0;
 
                         # no wildcards for bool_pfx_external
                         $star = '' if $pfx =~ /\A(dfpre|dfpost|mid)\z/;