This is a patch for "mpcsv7-src" 1.15v. It fixes a "compile" warning under 32-bit versions of Linux. --- sv7.old/config.c +++ sv7/config.c @@ -50,9 +50,9 @@ -unsigned long v_lng = (unsigned long ) 0x8877665544332211L; -unsigned short v_sht = (unsigned short) 0x8877665544332211L; -unsigned int v_int = (unsigned int ) 0x8877665544332211L; +unsigned long v_lng = (unsigned long ) 0x8877665544332211LL; +unsigned short v_sht = (unsigned short) 0x8877665544332211LL; +unsigned int v_int = (unsigned int ) 0x8877665544332211LL; unsigned char* lo = (unsigned char*) &v_lng; unsigned char* sh = (unsigned char*) &v_sht; @@ -61,7 +61,7 @@ #define ROUND32_1(x) ( floattmp = (x) + (Int32_t)0x00FF8000L, *(Int32_t*)(&floattmp) - (Int32_t)0x4B7F8000L ) #define ROUND32_2(x) ( (Int32_t) floor ((x) + 0.5) ) -#define ROUND64_1(x) ( doubletmp = (x) + (Int64_t)0x001FFFFF80000000L, *(Int64_t*)(&doubletmp) - (Int64_t)0x433FFFFF80000000L ) +#define ROUND64_1(x) ( doubletmp = (x) + (Int64_t)0x001FFFFF80000000LL, *(Int64_t*)(&doubletmp) - (Int64_t)0x433FFFFF80000000LL) #define ROUND64_2(x) ( (Int64_t) floor ((x) + 0.5) )