Use an ogg_int32_t rather than a plain int32_t, since windows systems don't
authorMike Smith <msmith@xiph.org>
Fri, 23 Jul 2004 01:23:40 +0000 (01:23 +0000)
committerMike Smith <msmith@xiph.org>
Fri, 23 Jul 2004 01:23:40 +0000 (01:23 +0000)
have the latter defined. Problem reported by Stephen So.

svn path=/trunk/vorbis/; revision=7263

lib/scales.h

index 355174d..4bfa82d 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: linear scale -> dB, Bark and Mel scales
- last mod: $Id: scales.h,v 1.26 2002/07/11 06:40:50 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 
@@ -39,7 +39,7 @@ static float FABS(float *x){
 
 /* Segher was off (too high) by ~ .3 decibel.  Center the conversion correctly. */
 static float todB(const float *x){
-  return (float)((*(int32_t *)x)&0x7fffffff) * 7.17711438e-7f -764.6161886f;
+  return (float)((*(ogg_int32_t *)x)&0x7fffffff) * 7.17711438e-7f -764.6161886f;
 }
 
 #define todB_nn(x) todB(x)