Bug 1551410 - Part 1: increment loop index; r=chutten
authorLiang-Heng Chen <xeonchen@gmail.com>
Tue, 14 May 2019 15:36:55 +0000
changeset 532613 50cab7d5d57a66c38707639e0926dac55955ec60
parent 532612 6ff9d6783ae0e67b522400818dbd02e1e42b74f6
child 532614 f2177d43f7d9c4953915d8cd8db019824832ea05
push id11270
push userrgurzau@mozilla.com
push dateWed, 15 May 2019 15:07:19 +0000
treeherdermozilla-beta@571bc76da583 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten
bugs1551410
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1551410 - Part 1: increment loop index; r=chutten Differential Revision: https://phabricator.services.mozilla.com/D31045
toolkit/components/telemetry/core/TelemetryOrigin.cpp
--- a/toolkit/components/telemetry/core/TelemetryOrigin.cpp
+++ b/toolkit/components/telemetry/core/TelemetryOrigin.cpp
@@ -229,17 +229,17 @@ nsresult AppEncodeTo(const StaticMutexAu
           size_t shardIndex = index / PrioEncoder::gNumBooleans;
           MOZ_ASSERT(shardIndex < metricData.Length());
           MOZ_ASSERT(index % PrioEncoder::gNumBooleans <
                      metricData[shardIndex].Length());
           metricData[shardIndex][index % PrioEncoder::gNumBooleans] = true;
         }
       }
       aResult.AppendElement(MakePair(id, metricData));
-    } while (generation < maxGeneration);
+    } while (generation++ < maxGeneration);
   }
   return NS_OK;
 }
 
 }  // anonymous namespace
 
 ////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////