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:
parent
cec7b68614
commit
7c386f0310
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue