Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(599)

Unified Diff: src/pkg/big/int_test.go

Issue 1244044: code review 1244044: big: prevent errors in Exp in the face of aliasing (Closed)
Patch Set: code review 1244044: big: prevent errors in Exp in the face of aliasing Created 14 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/big/int.go ('k') | src/pkg/big/nat.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/big/int_test.go
===================================================================
--- a/src/pkg/big/int_test.go
+++ b/src/pkg/big/int_test.go
@@ -602,7 +602,7 @@
continue
}
- z := new(Int).Exp(x, y, m)
+ z := y.Exp(x, y, m)
if !isNormalized(z) {
t.Errorf("#%d: %v is not normalized", i, *z)
}
« no previous file with comments | « src/pkg/big/int.go ('k') | src/pkg/big/nat.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b