A few minor syntax changes to make the Clang compiler (clang.llvm.org) happy.

MAME does not fully build with it yet so I can't do any drag-racing yet.
Stay tuned.
This commit is contained in:
R. Belmont 2009-12-02 03:30:33 +00:00
parent b665e8b20d
commit 41091eeda8
4 changed files with 9 additions and 7 deletions

View File

@ -631,7 +631,9 @@ static WRITE8_HANDLER( nob_mcu_control_p2_w )
/* bit 3 is toggled once at the start of an IRQ, and again at the end */
if (((mcu_control ^ data) & 0x08) && !(data & 0x08))
;//logerror("MCU IRQ(8) toggle\n");
{
//logerror("MCU IRQ(8) toggle\n");
}
mcu_control = data;
}

View File

@ -1359,9 +1359,9 @@ static void DSP1_project(INT16 *input, INT16 *output)
Py=shiftR(Py,E-refE);
Pz=shiftR(Pz,E3-refE);
C11=- (Px*shared.Nx>>15);
C8=- (Py*shared.Ny>>15);
C9=- (Pz*shared.Nz>>15);
C11= -(Px*shared.Nx>>15);
C8= -(Py*shared.Ny>>15);
C9= -(Pz*shared.Nz>>15);
C12=C11+C8+C9; // this cannot overflow!
aux4=C12; // de-normalization with 32-bits arithmetic

View File

@ -363,7 +363,7 @@ static void draw_sprites2( running_machine* machine, bitmap_t *bitmap, const rec
if (fy) fy = 0; else fy = 1;
mult = 16;
}
else mult =- 16;
else mult = -16;
while (multi >= 0)
{

View File

@ -320,9 +320,9 @@ WRITE8_HANDLER( wardner_exscroll_w ) /* Extra unused video layer */
{
switch (offset)
{
case 01: data <<= 8;
case 01: //data <<= 8;
case 00: logerror("PC - write %04x to unknown video scroll X register\n",data); break;
case 03: data <<= 8;
case 03: //data <<= 8;
case 02: logerror("PC - write %04x to unknown video scroll Y register\n",data); break;
}
}