mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
fixed result of bitstream_in::peek(0) (nw)
This commit is contained in:
parent
57c86b0b3f
commit
7a9f663d76
@ -126,6 +126,9 @@ inline bitstream_in::bitstream_in(const void *src, UINT32 srclength)
|
|||||||
|
|
||||||
inline UINT32 bitstream_in::peek(int numbits)
|
inline UINT32 bitstream_in::peek(int numbits)
|
||||||
{
|
{
|
||||||
|
if (numbits == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
// fetch data if we need more
|
// fetch data if we need more
|
||||||
if (numbits > m_bits)
|
if (numbits > m_bits)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user