Skip to content

Commit

Permalink
for matrices of size bigger 46340 int overflow could occur
Browse files Browse the repository at this point in the history
  • Loading branch information
petschow committed Sep 19, 2011
1 parent b038d64 commit 03be023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SRC/process_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ int create_subtasks(cluster_t *cl, int tid, int nthreads,
int i, k;
int new_first, new_last;
int new_size;
int new_ftt0, new_ftt1;
size_t new_ftt0, new_ftt1;
int cl_first, cl_last;
double lgap;
rrr_t *RRR_parent;
Expand Down
3 changes: 2 additions & 1 deletion SRC/process_singleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ int PMR_process_s_task(singleton_t *sng, int tid, counter_t *num_left,
int IONE = 1;
double DZERO = 0.0;
double tol, lambda, left, right;
int i_local, zind;
int i_local;
size_t zind;
double gap, lgap, rgap, gaptol, savedgap, tmp;
bool usedBS, usedRQ, needBS, wantNC, step2II;
int r, offset;
Expand Down

0 comments on commit 03be023

Please sign in to comment.