From 1c6b80dc9175d71d1f3e6bb1507050a8e9209909 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 3 Oct 2003 03:20:08 +0000 Subject: [PATCH] fix VC6 compile error --- stepmania/src/RageSoundReader_MP3.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSoundReader_MP3.cpp b/stepmania/src/RageSoundReader_MP3.cpp index b64b220edd..00ab78dca7 100644 --- a/stepmania/src/RageSoundReader_MP3.cpp +++ b/stepmania/src/RageSoundReader_MP3.cpp @@ -440,6 +440,8 @@ int RageSoundReader_MP3::do_mad_frame_decode() * so we can emulate that sync offset. */ int RageSoundReader_MP3::FindOffsetFix() { + int i; + /* Do a fake rewind. */ if( fseek(this->rw, 0, SEEK_SET) == -1 ) { @@ -460,7 +462,7 @@ int RageSoundReader_MP3::FindOffsetFix() mad->finished_header = false; /* Read a couple frames, to make sure we're synced. */ - for( int i = 0; i < 5; ++i ) + for( i = 0; i < 5; ++i ) { int ret = do_mad_frame_decode(); if( ret == 0 ) @@ -476,7 +478,7 @@ int RageSoundReader_MP3::FindOffsetFix() } /* Clear the TOC cache. We might have cached bogus values. */ - for(int i = 0; i < 200; ++i) + for( i = 0; i < 200; ++i) mad->toc[i] = -1; /* Save the current timestamp. This is the time we thought we were at when @@ -494,7 +496,7 @@ int RageSoundReader_MP3::FindOffsetFix() /* Search for the frame we just saved. */ mad_timer_t Actual = mad_timer_zero; bool found = false; - for( int i = 0; i < 10; ++i ) + for( i = 0; i < 10; ++i ) { int ret = do_mad_frame_decode(); if( ret == 0 )