From c65969135ab978d0a19ff49f03a5475c26238e7d Mon Sep 17 00:00:00 2001 From: luoyesiqiu Date: Thu, 5 Oct 2023 07:40:28 +0800 Subject: [PATCH] Update buffer size type --- shell/src/main/cpp/dex/MultiDexCode.cpp | 2 +- shell/src/main/cpp/dex/MultiDexCode.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/src/main/cpp/dex/MultiDexCode.cpp b/shell/src/main/cpp/dex/MultiDexCode.cpp index 2d02b7c9..925dd8ed 100644 --- a/shell/src/main/cpp/dex/MultiDexCode.cpp +++ b/shell/src/main/cpp/dex/MultiDexCode.cpp @@ -9,7 +9,7 @@ dpt::data::MultiDexCode* dpt::data::MultiDexCode::getInst(){ return m_inst; } -void dpt::data::MultiDexCode::init(uint8_t* buffer, int size){ +void dpt::data::MultiDexCode::init(uint8_t* buffer, size_t size){ this->m_buffer = buffer; this->m_size = size; } diff --git a/shell/src/main/cpp/dex/MultiDexCode.h b/shell/src/main/cpp/dex/MultiDexCode.h index 035f03c4..1ab1e150 100644 --- a/shell/src/main/cpp/dex/MultiDexCode.h +++ b/shell/src/main/cpp/dex/MultiDexCode.h @@ -17,7 +17,7 @@ namespace dpt { public: static MultiDexCode *getInst(); - void init(uint8_t *buffer, int size); + void init(uint8_t *buffer, size_t size); uint8_t readUInt8(uint32_t offset);