Nrage: fix a compiling warning

This commit is contained in:
zilmar 2015-02-23 04:04:47 +11:00
parent b0a5bdbc5f
commit 0519ad93c1
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ void UpdateRTC(LPGBCART Cart) {
Cart->TimerData[2] += (BYTE)(dif % 24);
dif /= 24;
days = Cart->TimerData[3] + ((Cart->TimerData[4] & 1) << 8) + dif;
days = (int)(Cart->TimerData[3] + ((Cart->TimerData[4] & 1) << 8) + dif);
Cart->TimerData[3] = (days & 0xFF);
if(days > 255) {