summaryrefslogtreecommitdiff
path: root/include/m_system.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-06 14:33:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-06 14:33:30 +0300
commit43134f01d3bcf7d5abe6c84c297faf1372e38bda (patch)
tree4f5b5027abe753d01f976d716e7c8d34c3901800 /include/m_system.h
parent9a0350523aa1d59fcbe1adb44fffa2a7581165d4 (diff)
uint8_t is far more kosher than char considering binary buffers
Diffstat (limited to 'include/m_system.h')
-rw-r--r--include/m_system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_system.h b/include/m_system.h
index e64f4376f1..706820f8fc 100644
--- a/include/m_system.h
+++ b/include/m_system.h
@@ -470,7 +470,7 @@ public:
class MIR_CORE_EXPORT MBinBuffer
{
- char *m_buf = nullptr;
+ uint8_t *m_buf = nullptr;
public:
MBinBuffer();
@@ -479,7 +479,7 @@ public:
~MBinBuffer();
MBinBuffer& operator=(MBinBuffer &&) noexcept;
- __forceinline char* data() const { return m_buf; }
+ __forceinline uint8_t* data() const { return m_buf; }
__forceinline bool isEmpty() const { return m_buf == nullptr; }
size_t length() const;