diff options
author | Simon Howard | 2010-08-22 17:59:12 +0000 |
---|---|---|
committer | Simon Howard | 2010-08-22 17:59:12 +0000 |
commit | 966089e8bdc5d2cae9c1b9e889c9ca1405d6c29e (patch) | |
tree | d9f88dca1b3c07dd9c8ef0e9a48a3b56355cf292 | |
parent | 14cf34bc65d7584984d26eea4154d58770125e60 (diff) | |
download | chocolate-doom-966089e8bdc5d2cae9c1b9e889c9ca1405d6c29e.tar.gz chocolate-doom-966089e8bdc5d2cae9c1b9e889c9ca1405d6c29e.tar.bz2 chocolate-doom-966089e8bdc5d2cae9c1b9e889c9ca1405d6c29e.zip |
Shut up compiler warning.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1964
-rw-r--r-- | opl/dbopl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/opl/dbopl.c b/opl/dbopl.c index a4bd6fe5..159cae45 100644 --- a/opl/dbopl.c +++ b/opl/dbopl.c @@ -1239,15 +1239,14 @@ void Chip__WriteReg(Chip *self, Bit32u reg, Bit8u val ) { } } - -static Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) { +Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) { switch ( port & 3 ) { case 0: return val; case 2: if ( self->opl3Active || (val == 0x05) ) return 0x100 | val; - else + else return val; } return 0; |