Skip to content

Commit

Permalink
Treat little numbers as big numbers (#2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcPMS authored Oct 18, 2022
1 parent 02ff006 commit 5e94550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace AppInstaller::Repository::Correlation
// We use that to scale to [0,1].
// A smaller distance represents a higher match, so we subtract from 1 for the final score
double editDistance = distance.At(s1.size() - 1, s2.size() - 1);
return 1 - editDistance / (s1.size() + s2.size());
return 1 - editDistance / (static_cast<uint64_t>(s1.size()) + static_cast<uint64_t>(s2.size()));
}
}

Expand Down

0 comments on commit 5e94550

Please sign in to comment.