/* libFLAC - Free Lossless Audio Codec library
- * Copyright (C) 2000,2001,2002 Josh Coalson
+ * Copyright (C) 2000,2001,2002,2003 Josh Coalson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
sum += qlp_coeff[j] * (*(--history));
#ifdef FLAC__OVERFLOW_DETECT
sumo += (FLAC__int64)qlp_coeff[j] * (FLAC__int64)(*history);
-#if defined _MSC_VER || defined __MINGW32__ /* don't know how to do 64-bit literals in VC++ */
- if(sumo < 0) sumo = -sumo;
- if(sumo > 2147483647)
+#if defined _MSC_VER
+ if(sumo > 2147483647I64 || sumo < -2147483648I64)
#else
if(sumo > 2147483647ll || sumo < -2147483648ll)
#endif
sum += qlp_coeff[j] * (*(--history));
#ifdef FLAC__OVERFLOW_DETECT
sumo += (FLAC__int64)qlp_coeff[j] * (FLAC__int64)(*history);
-#if defined _MSC_VER || defined __MINGW32__ /* don't know how to do 64-bit literals in VC++ */
- if(sumo < 0) sumo = -sumo;
- if(sumo > 2147483647)
+#if defined _MSC_VER
+ if(sumo > 2147483647I64 || sumo < -2147483648I64)
#else
if(sumo > 2147483647ll || sumo < -2147483648ll)
#endif