-Fixed a few things that are causing compilation issues in VC++
This commit is contained in:
parent
d3359010cc
commit
3ae3d05161
|
@ -49,12 +49,14 @@ void FIFOAdd(FIFO * fifo, u32 v)
|
||||||
|
|
||||||
u32 FIFOValue(FIFO * fifo)
|
u32 FIFOValue(FIFO * fifo)
|
||||||
{
|
{
|
||||||
|
u32 v;
|
||||||
|
|
||||||
if(fifo->empty)
|
if(fifo->empty)
|
||||||
{
|
{
|
||||||
fifo->error = TRUE;
|
fifo->error = TRUE;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
u32 v = fifo->data[fifo->begin];
|
v = fifo->data[fifo->begin];
|
||||||
fifo->begin = (fifo->begin + 1)& 0x1FFF;
|
fifo->begin = (fifo->begin + 1)& 0x1FFF;
|
||||||
fifo->empty = (fifo->begin == fifo->end);
|
fifo->empty = (fifo->begin == fifo->end);
|
||||||
return v;
|
return v;
|
||||||
|
|
Loading…
Reference in New Issue