Skip to content

Commit 2aa819f

Browse files
authored
Always instantiate Float32Array in the cost array of findOptimalSegmentationInternal. (#342)
1 parent 91aaaac commit 2aa819f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/perf.webkit.org/public/shared/statistics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ var Statistics = new (function () {
597597

598598
function findOptimalSegmentationInternal(cost, previousNode, values, costMatrix, segmentCount)
599599
{
600-
cost[0] = [0]; // The cost of segmenting single value is always 0.
600+
cost[0] = new Float32Array([0]); // The cost of segmenting single value is always 0.
601601
previousNode[0] = [-1];
602602
for (var segmentStart = 0; segmentStart < values.length; segmentStart++) {
603603
var costOfOptimalSegmentationThatEndAtCurrentStart = cost[segmentStart];

resources/perf.webkit.org/public/v3/bundled-scripts.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)