summaryrefslogtreecommitdiff
blob: d62e86995bfa4e7d8dd8ed2e2a6f4da7e20d42b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -u Math-BigInt-1.997/lib/Math/BigInt.pm Math-BigInt-1.997-r1/lib/Math/BigInt.pm
--- Math-BigInt-1.997/lib/Math/BigInt.pm	2011-09-03 02:26:41.000000000 -0400
+++ Math-BigInt-1.997-r1/lib/Math/BigInt.pm	2012-07-17 20:32:26.630203065 -0400
@@ -40,6 +40,9 @@
 # Thus inheritance of overload operators becomes possible and transparent for
 # our subclasses without the need to repeat the entire overload section there.
 
+# https://github.com/ilmari/perl/commit/5e0688b6067afdfb59fdfa9923e658ed40c9f246
+# We register ops that are not registerable yet, so suppress warnings
+{ no warnings;
 use overload
 '='     =>      sub { $_[0]->copy(); },
 
@@ -151,6 +154,7 @@
 '""' => sub { $_[0]->bstr(); },
 '0+' => sub { $_[0]->numify(); }
 ;
+} # no warnings scope
 
 ##############################################################################
 # global constants, flags and accessory