mirror of
https://github.com/bitdefender/bddisasm.git
synced 2024-11-22 07:28:07 +00:00
Merge pull request #95 from BJNFNE/ndfetchdata-gcc-warning
fix gcc warning in NdFetchData
This commit is contained in:
commit
8b4cc482b9
@ -88,7 +88,6 @@ NdGetVersion(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// NdFetchData
|
// NdFetchData
|
||||||
//
|
//
|
||||||
@ -98,11 +97,19 @@ NdFetchData(
|
|||||||
ND_UINT8 Size
|
ND_UINT8 Size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (4 == Size) ? ND_FETCH_32(Buffer) :
|
switch (Size)
|
||||||
(1 == Size) ? ND_FETCH_8(Buffer) :
|
{
|
||||||
(8 == Size) ? ND_FETCH_64(Buffer) :
|
case 1:
|
||||||
(2 == Size) ? ND_FETCH_16(Buffer) :
|
return ND_FETCH_8(Buffer);
|
||||||
0;
|
case 2:
|
||||||
|
return ND_FETCH_16(Buffer);
|
||||||
|
case 4:
|
||||||
|
return ND_FETCH_32(Buffer);
|
||||||
|
case 8:
|
||||||
|
return ND_FETCH_64(Buffer);
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user