Skip to content

Commit

Permalink
fix overflow issue
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Hjelm <[email protected]>
  • Loading branch information
hjelmn committed Oct 4, 2018
1 parent b0d57b3 commit 56d39a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rmamt_bibw.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int main(int argc,char *argv[])
pthread_join(id[i], NULL);
}

for (uint32_t j = min_size, step = 0 ; j <= max_size ; j <<= 1, ++step) {
for (uint64_t j = min_size, step = 0 ; j <= max_size ; j <<= 1, ++step) {
double speed = 0.0, msg_rate = 0.0;

for (int i = 0 ; i < rmamt_threads ; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion src/rmamt_bw.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int main(int argc,char *argv[])
pthread_join(id[i], NULL);
}

for (uint32_t j = min_size, step = 0 ; j <= max_size ; j <<= 1, ++step) {
for (uint64_t j = min_size, step = 0 ; j <= max_size ; j <<= 1, ++step) {
double speed = 0.0, msg_rate = 0.0;

for (int i = 0 ; i < rmamt_threads ; ++i) {
Expand Down

0 comments on commit 56d39a7

Please sign in to comment.