Skip to content

Commit

Permalink
Merge pull request #7 from demerphq/main
Browse files Browse the repository at this point in the history
Bail early and avoid warnings on 32 bit Perl builds
  • Loading branch information
pmqs committed Apr 12, 2022
2 parents a720a4b + 53b92bf commit 87dd9ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/zipdetails
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

use 5.010; # for unpack "Q<"

BEGIN {
if (!eval { pack "Q", 1 }) {
warn "zipdetails requires 64 bit integers, ",
"this Perl has 32 bit integers.\n";
exit(1);
}
}

BEGIN { pop @INC if $INC[-1] eq '.' }
use strict;
use warnings ;
Expand Down

0 comments on commit 87dd9ac

Please sign in to comment.