aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/src/debug.h')
-rw-r--r--native/jni/src/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/src/debug.h b/native/jni/src/debug.h
index 2432b1f2e..4e2164014 100644
--- a/native/jni/src/debug.h
+++ b/native/jni/src/debug.h
@@ -58,7 +58,7 @@ static inline void LOGI_S16_PLUS(unsigned short *string, const unsigned int leng
}
static inline void printDebug(const char *tag, int *codes, int codesSize, int MAX_PROXIMITY_CHARS) {
- unsigned char *buf = reinterpret_cast<unsigned char *>(malloc((1 + codesSize) * sizeof(*buf)));
+ unsigned char *buf = static_cast<unsigned char *>(malloc((1 + codesSize) * sizeof(*buf)));
buf[codesSize] = 0;
while (--codesSize >= 0) {