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

Commit 952970f4 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Make loghex properly count numer length

am: 27461cb8

Change-Id: I303112998d7629c8a26a698c548b80bad58157fd
parents d65815b0 27461cb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -734,7 +734,7 @@ std::string loghex(T x) {
                "loghex parameter must be integral.");
  std::stringstream tmp;
  tmp << std::showbase << std::internal << std::hex << std::setfill('0')
      << std::setw(sizeof(T) / 4 + 2) << x;
      << std::setw((sizeof(T) * 2) + 2) << +x;
  return tmp.str();
}