Skip to content

Commit

Permalink
bugfix big block size
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouilla committed Sep 27, 2023
1 parent e60de3a commit e280e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spasm_echelonize.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ static void echelonize_dense(const spasm *A, const int *p, int n, const int *p_i
i64 prime = spasm_get_prime(A);
spasm_datatype datatype = spasm_datatype_choose(prime);

void *S = spasm_malloc(opts->dense_block_size * Sm * spasm_datatype_size(datatype));
void *S = spasm_malloc((i64) opts->dense_block_size * Sm * spasm_datatype_size(datatype));
int *p_out = spasm_malloc(opts->dense_block_size * sizeof(*p_out));
int *q = spasm_malloc(Sm * sizeof(*q));
size_t *Sqinv = spasm_malloc(Sm * sizeof(*Sqinv)); /* for FFPACK */
Expand Down

0 comments on commit e280e1d

Please sign in to comment.