2
0
Fork 0

Attempt to resolve build issues reported by nrezmerski under Xcode.

This commit is contained in:
bruce 2013-12-09 22:57:30 +08:00
parent 30ef765858
commit cbc57c57ec
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include "pic.h" #include "pic.h"
#include "hardware.h" #include "hardware.h"
#include <math.h>
namespace Adlib { namespace Adlib {

View File

@ -1440,7 +1440,7 @@ void InitTables( void ) {
//Add back the bits for highest ones //Add back the bits for highest ones
if ( i >= 16 ) if ( i >= 16 )
index += 9; index += 9;
Bitu blah = reinterpret_cast<Bitu>( &(chip->chan[ index ]) ); Bit64u blah = reinterpret_cast<Bit64u>( &(chip->chan[ index ]) );
ChanOffsetTable[i] = blah; ChanOffsetTable[i] = blah;
} }
//Same for operators //Same for operators
@ -1455,7 +1455,7 @@ void InitTables( void ) {
chNum += 16 - 12; chNum += 16 - 12;
Bitu opNum = ( i % 8 ) / 3; Bitu opNum = ( i % 8 ) / 3;
DBOPL::Channel* chan = 0; DBOPL::Channel* chan = 0;
Bitu blah = reinterpret_cast<Bitu>( &(chan->op[opNum]) ); Bit64u blah = reinterpret_cast<Bit64u>( &(chan->op[opNum]) );
OpOffsetTable[i] = ChanOffsetTable[ chNum ] + blah; OpOffsetTable[i] = ChanOffsetTable[ chNum ] + blah;
} }
#if 0 #if 0