Use size_t instead of uint64_t for memory input

This commit is contained in:
Joel Höner 2017-01-07 00:29:16 +01:00
parent 2e11b44ddf
commit b291c8a760
2 changed files with 4 additions and 4 deletions

View File

@ -101,11 +101,11 @@ typedef struct ZydisMemoryInput_
/**
* @brief The length of the memory buffer.
*/
uint64_t inputBufferLen;
size_t inputBufferLen;
/**
* @brief The current input position.
*/
uint64_t inputBufferPos;
size_t inputBufferPos;
} ZydisMemoryInput;
/* ---------------------------------------------------------------------------------------------- */
@ -122,7 +122,7 @@ typedef struct ZydisMemoryInput_
* @return A zydis status code.
*/
ZYDIS_EXPORT ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer,
uint64_t length);
size_t length);
/* ---------------------------------------------------------------------------------------------- */

View File

@ -48,7 +48,7 @@ static ZydisBool ZydisMemoryInputNext(ZydisMemoryInput* input, uint8_t* data)
/* Exported functions */
/* ---------------------------------------------------------------------------------------------- */
ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer, uint64_t length)
ZydisStatus ZydisInputInitMemoryInput(ZydisMemoryInput* input, const void* buffer, size_t length)
{
if (!input || !buffer || (length == 0))
{