8000 BUG: random: Fix the mistaken duplicate line. Fixes gh-14557. · numpy/numpy@1afcaee · GitHub
[go: up one dir, main page]

Skip to content

Commit 1afcaee

Browse files
WarrenWeckessercharris
authored andcommitted
BUG: random: Fix the mistaken duplicate line. Fixes gh-14557.
1 parent 744856e commit 1afcaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/random/mtrand.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3517,7 +3517,7 @@ cdef class RandomState:
35173517
# Convert to int64, if necessary, to use int64 infrastructure
35183518
ongood = ongood.astype(np.int64)
35193519
onbad = onbad.astype(np.int64)
3520-
onbad = onbad.astype(np.int64)
3520+
onsample = onsample.astype(np.int64)
35213521
out = discrete_broadcast_iii(&legacy_random_hypergeometric,&self._bitgen, size, self.lock,
35223522
ongood, 'ngood', CONS_NON_NEGATIVE,
35233523
onbad, 'nbad', CONS_NON_NEGATIVE,

0 commit comments

Comments
 (0)
0