From: Mike Smith Date: Fri, 23 Jul 2004 01:23:40 +0000 (+0000) Subject: Use an ogg_int32_t rather than a plain int32_t, since windows systems don't X-Git-Tag: v1.3.3~532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96c06653bb93ae4d2759ddb9fc13550e42bac99e;p=platform%2Fupstream%2Flibvorbis.git Use an ogg_int32_t rather than a plain int32_t, since windows systems don't have the latter defined. Problem reported by Stephen So. svn path=/trunk/vorbis/; revision=7263 --- diff --git a/lib/scales.h b/lib/scales.h index 355174d..4bfa82d 100644 --- a/lib/scales.h +++ b/lib/scales.h @@ -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)