Fix warnings in emucore
This commit is contained in:
committed by
Nekotekina
parent
f2f3321952
commit
250736ece5
@@ -1,4 +1,4 @@
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "TAR.h"
|
||||
|
||||
@@ -30,7 +30,7 @@ int octalToDecimal(int octalNumber)
|
||||
{
|
||||
rem = octalNumber % 10;
|
||||
octalNumber /= 10;
|
||||
decimalNumber += rem * pow(8, i);
|
||||
decimalNumber += rem * (1 << (i * 3));
|
||||
++i;
|
||||
}
|
||||
return decimalNumber;
|
||||
|
||||
Reference in New Issue
Block a user