void-packages/srcpkgs/eclib/patches/fix-32bit-Euler.patch

12 lines
316 B
Diff

--- a/libsrc/interface.cc
+++ b/libsrc/interface.cc
@@ -103,7 +103,7 @@ void Compute_Euler(RR& y)
l = RR::precision();
- x = 1 + static_cast<long>((0.25 * (l - 3)) * (NTL_BITS_PER_LONG * LOG2));
+ x = 1 + static_cast<long>((0.25 * (l - 3)) * (64 * LOG2));
n = 1 + static_cast<long>(3.591 * x);
a=x;