summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6840ptm.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-03-12 07:43:03 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-03-12 07:43:03 +0000
commiteb539cce9d58a349e0dffff237dc96bb926ca06f (patch)
treee86162a925dfb228169afd2fb6309cba906400c5 /src/emu/machine/6840ptm.c
parentfeb4e2c8b368f5ec7f251e764167fd24708700f3 (diff)
Many casts added to the core files, and various other tweaks
to make them compile as either C or C++.
Diffstat (limited to 'src/emu/machine/6840ptm.c')
-rw-r--r--src/emu/machine/6840ptm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c
index d5f4faa8c6b..010d81232d6 100644
--- a/src/emu/machine/6840ptm.c
+++ b/src/emu/machine/6840ptm.c
@@ -355,7 +355,7 @@ static void reload_count(running_machine *machine, int which, int idx)
if (idx == 2) duration = attotime_mul(duration, currptr->t3_divisor);
PLOG(("MC6840 #%d: reload_count(%d): output = %lf\n", which, idx, attotime_to_double(duration)));
- if (!currptr->control_reg[idx] & 0x02)
+ if (!(currptr->control_reg[idx] & 0x02))
{
if (!currptr->intf->external_clock[idx])
{
@@ -739,7 +739,7 @@ void ptm6840_set_ext_clock(int which, int counter, int clock)
ptm6840 *currptr = ptm + which;
currptr->external_clock[counter] = clock;
- if (!currptr->control_reg[counter] & 0x02)
+ if (!(currptr->control_reg[counter] & 0x02))
{
if (!currptr->intf->external_clock[counter])
{