Skip to content

Commit

Permalink
Use PATH_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
qvacua committed Feb 8, 2020
1 parent f07d3bd commit 564c607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VimR/VimR/FuzzyMatcher/fuzzy_match.hh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace ccls {
class FuzzyMatcher {
public:
constexpr static int kMaxPat = 100;
constexpr static int kMaxText = 200 + 300; // TAE: originally 200
constexpr static int kMaxText = PATH_MAX; // TAE: originally 200
// Negative but far from INT_MIN so that intermediate results are hard to
// overflow.
constexpr static int kMinScore = INT_MIN / 4;
Expand Down

0 comments on commit 564c607

Please sign in to comment.