You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by if...@apache.org on 2020/08/13 08:26:25 UTC
[rocketmq-client-cpp] branch master updated: fix: hexdump's
prototype (#329)
This is an automated email from the ASF dual-hosted git repository.
ifplusor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 9008c14 fix: hexdump's prototype (#329)
9008c14 is described below
commit 9008c14d9c34a4f0b4a67417000612348157027e
Author: ideami <id...@outlook.com>
AuthorDate: Thu Aug 13 16:26:15 2020 +0800
fix: hexdump's prototype (#329)
The declaration of hexdump() does not match its definition.
---
src/producer/StringIdMaker.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/producer/StringIdMaker.h b/src/producer/StringIdMaker.h
index 872bf05..0433b41 100644
--- a/src/producer/StringIdMaker.h
+++ b/src/producer/StringIdMaker.h
@@ -20,6 +20,7 @@
#include <atomic>
#include <cstdint>
#include <string>
+#include <cstddef>
namespace rocketmq {
@@ -48,7 +49,7 @@ class StringIdMaker {
void setStartTime(uint64_t millis);
static uint32_t getIP();
- static void hexdump(unsigned char* buffer, char* out_buff, unsigned long index);
+ static void hexdump(unsigned char* buffer, char* out_buff, std::size_t index);
private:
uint64_t mStartTime;