Skip to content

Commit 8628b09

Browse files
committed
Use correct data types in BuildContour
Also max range check improved
1 parent 4be8c40 commit 8628b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6758,7 +6758,7 @@
67586758
while (true) {
67596759
nadd = 0;
67606760
for (i=2;i<np;i+=2) {
6761-
if ((iplus < np-1) && (xx[i] === xp[iplus]) && (yy[i] === yp[iplus])) {
6761+
if ((iplus < 2*npmax-1) && (xx[i] === xp[iplus]) && (yy[i] === yp[iplus])) {
67626762
iplus++;
67636763
xp[iplus] = xx[i+1]; yp[iplus] = yy[i+1];
67646764
xx[i] = xx[i+1] = xmin;

0 commit comments

Comments
 (0)