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

Commit b9a1ff14 authored by Jaesung Chung's avatar Jaesung Chung Committed by android-build-merger
Browse files

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

am: 31f2c817

Change-Id: If4ad61346df17727e39bf0aa26c4dc96f8feeb24
parents 749d2a0a 31f2c817
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) {