Permalink
Browse files

fix 32-bit integer overflow

	modified:   base/test.jl
  • Loading branch information...
1 parent 92a8285 commit 98c667afbcbabf72c62f5cf8ef2f34c314f9ab63 @mschauer mschauer committed Jan 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 base/test.jl
View
@@ -73,7 +73,7 @@ function test_approx_eq(va, vb, Eps, astr, bstr)
end
test_approx_eq(va, vb, astr, bstr) =
- test_approx_eq(va, vb, 10^4*length(va)*max(eps(float(maximum(abs(va)))), eps(float(maximum(abs(vb))))), astr, bstr)
+ test_approx_eq(va, vb, 1E4*length(va)*max(eps(float(maximum(abs(va)))), eps(float(maximum(abs(vb))))), astr, bstr)
macro test_approx_eq_eps(a, b, c)
:(test_approx_eq($(esc(a)), $(esc(b)), $(esc(c)), $(string(a)), $(string(b))))

0 comments on commit 98c667a

Please sign in to comment.