Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31f2c817 authored by Jaesung Chung's avatar Jaesung Chung Committed by Gerrit Code Review
Browse files

Merge "logd-unit-tests: make sure use unsigned types when reading le"

parents 9d2e688b 23f1d09b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -933,9 +933,13 @@ TEST(logd, getEventTag_newentry) {
}

#ifdef __ANDROID__
static inline int32_t get4LE(const char* src) {
static inline uint32_t get4LE(const uint8_t* src) {
  return src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24);
}

static inline uint32_t get4LE(const char* src) {
  return get4LE(reinterpret_cast<const uint8_t*>(src));
}
#endif

void __android_log_btwrite_multiple__helper(int count) {