From 7c386f0310a34174edd32738c6b0192521bd62ab Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 5 May 2009 19:00:13 +0000 Subject: [PATCH] Last hunk of ldesnogue patch to make desmume more 64 bit architectures friendly: convert Ceil28_4 to use int instead of long. --- desmume/src/rasterize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index c5ca33380..f54938add 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -649,9 +649,9 @@ inline fixed28_4 Fixed28_4Mul( fixed28_4 A, fixed28_4 B ) { // could make this asm to prevent overflow return (A * B) / 16; // 28.4 * 28.4 = 24.8 / 16 = 28.4 } -inline long Ceil28_4( fixed28_4 Value ) { - long ReturnValue; - long Numerator = Value - 1 + 16; +inline int Ceil28_4( fixed28_4 Value ) { + int ReturnValue; + int Numerator = Value - 1 + 16; if(Numerator >= 0) { ReturnValue = Numerator/16; } else {