Skip to content

Commit

Permalink
Type discrepency warning fixed (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Shiyue Rong <[email protected]>
  • Loading branch information
Kellyyyy2333 and Shiyue Rong authored Jul 23, 2020
1 parent efa204b commit 9f67c6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file added sana.multi
Binary file not shown.
12 changes: 6 additions & 6 deletions src/methods/SANA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ int SANA::MS3IncChangeOp(uint source, uint oldTarget, uint newTarget) {
switch (MultiS3::denominator_type) {
case 1: //MultiS3::rt_i
{
int neighbor;
uint neighbor;
const uint n1 = G1->getNumNodes();
const uint n2 = G2->getNumNodes();
vector<uint> whichPeg(n2, n1); // value of n1 represents not used
Expand Down Expand Up @@ -2362,7 +2362,7 @@ int SANA::MS3IncChangeOp(uint source, uint oldTarget, uint newTarget) {
case 2: //MultiS3::ee_i
{

int neighbor;
uint neighbor;
const uint n1 = G1->getNumNodes();
const uint n2 = G2->getNumNodes();
vector<uint> whichPeg(n2, n1); // value of n1 represents not used
Expand Down Expand Up @@ -2467,10 +2467,10 @@ int SANA::MS3IncChangeOp(uint source, uint oldTarget, uint newTarget) {
{
int res = 0;
int diff = 0;
int neighbor = 0;
uint neighbor = 0;
bool ladder = false;
const uint n = G1AdjLists[source].size();
for (int i=0;i<n;i++){
for (uint i=0;i<n;i++){
neighbor = G1AdjLists[source][i];
if (G1Matrix[neighbor][source]>0){
diff = G2Matrix[oldTarget][(*A)[neighbor]] + 1;
Expand Down Expand Up @@ -2551,7 +2551,7 @@ int SANA::MS3IncSwapOp(uint source1, uint source2, uint target1, uint target2) {
case 1: //MultiS3::rt_i
{

int neighbor;
uint neighbor;
const uint n1 = G1->getNumNodes();
const uint n2 = G2->getNumNodes();
vector<uint> whichPeg(n2, n1);
Expand Down Expand Up @@ -2613,7 +2613,7 @@ int SANA::MS3IncSwapOp(uint source1, uint source2, uint target1, uint target2) {
break;
case 2: //MultiS3::ee_i
{
int neighbor;
uint neighbor;
const uint n1 = G1->getNumNodes();
const uint n2 = G2->getNumNodes();
vector<uint> whichPeg(n2, n1); // value of n1 represents not used
Expand Down

0 comments on commit 9f67c6d

Please sign in to comment.