Skip to content

Commit

Permalink
Fix bug with int32 vs int64
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-huber authored Jul 1, 2024
1 parent ce77f94 commit bd0a7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparsestack/StackedSparseArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class StackedSparseArray:
def __init__(self, n_row, n_col):
self.__n_row = n_row
self.__n_col = n_col
self.idx_dtype = get_index_dtype(maxval=max(n_row, n_col))
self.idx_dtype = get_index_dtype(maxval=n_row * n_col))
self.row = np.array([], dtype=self.idx_dtype)
self.col = np.array([], dtype=self.idx_dtype)
self.data = None
Expand Down

0 comments on commit bd0a7f8

Please sign in to comment.