Bug 1551410 - Part 1: increment loop index; r=chutten
authorLiang-Heng Chen <xeonchen@gmail.com>
Tue, 14 May 2019 15:36:55 +0000
changeset 473792 50cab7d5d57a66c38707639e0926dac55955ec60
parent 473791 6ff9d6783ae0e67b522400818dbd02e1e42b74f6
child 473793 f2177d43f7d9c4953915d8cd8db019824832ea05
push id36015
push usercbrindusan@mozilla.com
push dateTue, 14 May 2019 21:40:04 +0000
treeherdermozilla-central@f17162f343b6 [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
 
 ////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////