From 45661199e6c75c63235189cf461937a4c5989fae Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 11 Apr 2009 08:54:26 +0000 Subject: [PATCH] hey pa__ dont use ARRAYSIZE, use ARRAY_SIZE instead. --- desmume/src/NDSSystem.cpp | 2 +- desmume/src/windows/mic.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index c445e4429..5e73e7afd 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -2428,7 +2428,7 @@ void SetTurbo(bool (&pad) [10]) { if(currentbutton) { pad[i]=turbo[TurboTime.time(i)-1]; - if(TurboTime.time(i)>=ARRAYSIZE(turbo)) + if(TurboTime.time(i)>=ARRAY_SIZE(turbo)) TurboTime.time(i)=0; } else diff --git a/desmume/src/windows/mic.cpp b/desmume/src/windows/mic.cpp index 1c3be3a62..16c608cd1 100644 --- a/desmume/src/windows/mic.cpp +++ b/desmume/src/windows/mic.cpp @@ -171,7 +171,7 @@ u8 Mic_ReadSample() } else { //use the "random" values x++; - if(x > ARRAYSIZE(random)) + if(x > ARRAY_SIZE(random)) x=0; ret = random[x]; }