Skip to content

Commit

Permalink
Always instantiate Float32Array in the cost array of findOptimalSegme…
Browse files Browse the repository at this point in the history
…ntationInternal. (#342)
  • Loading branch information
rniwa authored Jan 11, 2024
1 parent 91aaaac commit 2aa819f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/perf.webkit.org/public/shared/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ var Statistics = new (function () {

function findOptimalSegmentationInternal(cost, previousNode, values, costMatrix, segmentCount)
{
cost[0] = [0]; // The cost of segmenting single value is always 0.
cost[0] = new Float32Array([0]); // The cost of segmenting single value is always 0.
previousNode[0] = [-1];
for (var segmentStart = 0; segmentStart < values.length; segmentStart++) {
var costOfOptimalSegmentationThatEndAtCurrentStart = cost[segmentStart];
Expand Down
4 changes: 2 additions & 2 deletions resources/perf.webkit.org/public/v3/bundled-scripts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2aa819f

Please sign in to comment.