-Fixed a few things that are causing compilation issues in VC++

This commit is contained in:
cyberwarriorx 2006-11-19 18:56:06 +00:00
parent d3359010cc
commit 3ae3d05161
1 changed files with 3 additions and 1 deletions

View File

@ -49,12 +49,14 @@ void FIFOAdd(FIFO * fifo, u32 v)
u32 FIFOValue(FIFO * fifo)
{
u32 v;
if(fifo->empty)
{
fifo->error = TRUE;
return 0;
}
u32 v = fifo->data[fifo->begin];
v = fifo->data[fifo->begin];
fifo->begin = (fifo->begin + 1)& 0x1FFF;
fifo->empty = (fifo->begin == fifo->end);
return v;