Skip to content

Commit 0db1c1c

Browse files
committed
bug fix
1 parent 0cccd08 commit 0db1c1c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/sort/int.jl

+16-16
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ function _ds_sort_int_missatright_nopermx_threaded!(x, original_P, copy_P, lo, h
285285
where[1][label] += 1
286286
end
287287
else
288-
if Int(x[i]) % nt == thid
289-
label = Int(x[i]) + offs + 1
288+
label = Int(x[i]) + offs + 1
289+
if label % nt == thid
290290
original_P[where[1][label] + lo - 1] = copy_P[i]
291291
where[1][label] += 1
292292
end
@@ -327,8 +327,8 @@ function _ds_sort_int_missatright_nopermx_threaded!(x, original_P, rangelen, min
327327
where[1][label] += 1
328328
end
329329
else
330-
if Int(x[i]) % nt == thid
331-
label = Int(x[i]) + offs + 1
330+
label = Int(x[i]) + offs + 1
331+
if label % nt == thid
332332
original_P[where[1][label]] = i
333333
where[1][label] += 1
334334
end
@@ -370,8 +370,8 @@ function _ds_sort_int_missatleft_nopermx_threaded!(x, original_P, copy_P, lo, hi
370370
where[1][label] += 1
371371
end
372372
else
373-
if Int(x[i]) % nt == thid
374-
label = Int(x[i]) + offs + 2
373+
label = Int(x[i]) + offs + 2
374+
if label % nt == thid
375375
original_P[where[1][label] + lo - 1] = copy_P[i]
376376
where[1][label] += 1
377377
end
@@ -413,8 +413,8 @@ function _ds_sort_int_missatleft_nopermx_threaded!(x, original_P, rangelen, minv
413413
where[1][label] += 1
414414
end
415415
else
416-
if Int(x[i]) % nt == thid
417-
label = Int(x[i]) + offs + 2
416+
label = Int(x[i]) + offs + 2
417+
if label % nt == thid
418418
original_P[where[1][label]] = i
419419
where[1][label] += 1
420420
end
@@ -453,8 +453,8 @@ function _ds_sort_int_missatright_nopermx_threaded_lm!(x, original_P, copy_P, lo
453453
where[label] += 1
454454
end
455455
else
456-
if Int(x[i]) % nt == thid
457-
label = Int(x[i]) + offs + 1
456+
label = Int(x[i]) + offs + 1
457+
if label % nt == thid
458458
original_P[where[label] + lo - 1] = copy_P[i]
459459
where[label] += 1
460460
end
@@ -490,8 +490,8 @@ function _ds_sort_int_missatright_nopermx_threaded_lm!(x, original_P, rangelen,
490490
where[label] += 1
491491
end
492492
else
493-
if Int(x[i]) % nt == thid
494-
label = Int(x[i]) + offs + 1
493+
label = Int(x[i]) + offs + 1
494+
if label % nt == thid
495495
original_P[where[label]] = i
496496
where[label] += 1
497497
end
@@ -528,8 +528,8 @@ function _ds_sort_int_missatleft_nopermx_threaded_lm!(x, original_P, copy_P, lo,
528528
where[label] += 1
529529
end
530530
else
531-
if Int(x[i]) % nt == thid
532-
label = Int(x[i]) + offs + 2
531+
label = Int(x[i]) + offs + 2
532+
if label % nt == thid
533533
original_P[where[label] + lo - 1] = copy_P[i]
534534
where[label] += 1
535535
end
@@ -566,8 +566,8 @@ function _ds_sort_int_missatleft_nopermx_threaded_lm!(x, original_P, rangelen, m
566566
where[label] += 1
567567
end
568568
else
569-
if Int(x[i]) % nt == thid
570-
label = Int(x[i]) + offs + 2
569+
label = Int(x[i]) + offs + 2
570+
if label % nt == thid
571571
original_P[where[label]] = i
572572
where[label] += 1
573573
end

0 commit comments

Comments
 (0)