From b291c8a760ba3500a31ad5b53718c99c1dbbd98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Sat, 7 Jan 2017 00:29:16 +0100 Subject: [PATCH] Use size_t instead of uint64_t for memory input --- include/Zydis/Input.h | 6 +++--- src/Input.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Zydis/Input.h b/include/Zydis/Input.h index 647516a..7ddf744 100644 --- a/include/Zydis/Input.h +++ b/include/Zydis/Input.h @@ -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); /* ---------------------------------------------------------------------------------------------- */ diff --git a/src/Input.c b/src/Input.c index cf10abe..7a7af5a 100644 --- a/src/Input.c +++ b/src/Input.c @@ -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)) {