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

Commit ba80ab13 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "zip_archive.cc: Use static cast instead of masking"

parents 9780fc35 c0bf3664
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -102,9 +102,8 @@ static uint32_t RoundUpPower2(uint32_t val) {
}

static uint32_t ComputeHash(const ZipString& name) {
  return std::hash<std::string_view>{}(
             std::string_view(reinterpret_cast<const char*>(name.name), name.name_length)) &
         UINT32_MAX;
  return static_cast<uint32_t>(std::hash<std::string_view>{}(
      std::string_view(reinterpret_cast<const char*>(name.name), name.name_length)));
}

static bool isZipStringEqual(const uint8_t* start, const ZipString& zip_string,