--- fflas-ffpack-1.4.3/fflas-ffpack/field/modular-int64.h.orig 2012-05-03 15:24:40.056701685 -0300
+++ fflas-ffpack-1.4.3/fflas-ffpack/field/modular-int64.h 2012-05-03 15:25:06.958702150 -0300
@@ -25,8 +25,8 @@
* @ingroup field
* @brief representation of Z/mZ
over \c int64_t .
*/
-#ifndef __FFLASFFPACK_modular_int32_H
-#define __FFLASFFPACK_modular_int32_H
+#ifndef __FFLASFFPACK_modular_int64_H
+#define __FFLASFFPACK_modular_int64_H
#include
#include
@@ -89,7 +89,7 @@ namespace FFPACK
,one(1),zero(0),mone(modulus -1)
{
modulusinv=1/(double)65521;
- _two64 = (int64) ((uint64) (-1) % (uint64) 65521);
+ _two64 = (int64_t) ((uint64_t) (-1) % (uint64_t) 65521);
_two64 += 1;
if (_two64 >= 65521) _two64 -= 65521;
@@ -107,7 +107,7 @@ namespace FFPACK
FieldTraits >::maxModulus((uint64_t&)max) ;
if( value > max ) throw Failure(__func__,__FILE__,__LINE__,"modulus is too big");
#endif
- _two64 = (int64) ((uint64) (-1) % (uint64) value);
+ _two64 = (int64_t) ((uint64_t) (-1) % (uint64_t) value);
_two64 += 1;
if (_two64 >= value) _two64 -= value;