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

Commit 5986a59e authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Make loghex properly count numer length am: 27461cb8 am: 952970f4

am: 2014a008

Change-Id: I5ba75ba6ab59c514428bff23100f45a6de385496
parents 0c7006b2 2014a008
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();
}