Last hunk of ldesnogue patch to make desmume more 64 bit architectures friendly: convert Ceil28_4 to use int instead of long.

This commit is contained in:
riccardom 2009-05-05 19:00:13 +00:00
parent cec7b68614
commit 7c386f0310
1 changed files with 3 additions and 3 deletions

View File

@ -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 {