projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Document that File::Find doesn't follow symlinks
[p5sagit/p5-mst-13.2.git]
/
lib
/
bigrat.pl
diff --git
a/lib/bigrat.pl
b/lib/bigrat.pl
index
5bd127a
..
fb436ce
100644
(file)
--- a/
lib/bigrat.pl
+++ b/
lib/bigrat.pl
@@
-55,6
+55,7
@@
sub norm { #(bint, bint) return rat_num
'NaN';
} else {
local($gcd) = &'bgcd($num,$dom);
+ $gcd =~ s/^-/+/;
if ($gcd ne '+1') {
$num = &'bdiv($num,$gcd);
$dom = &'bdiv($dom,$gcd);