Skip to content

Commit

Permalink
See if this fixes windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Sep 13, 2024
1 parent 845ecfa commit 47490e0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
//===----------------------------------------------------------------------===//

#pragma once
#ifndef NOMINMAX
#define NOMINMAX
#endif

#include <algorithm>
#include <vector>
Expand Down Expand Up @@ -75,8 +72,11 @@ struct CreatePropertyGraphInfo : public CreateInfo {

for (size_t i = 1; i <= len1; ++i)
for (size_t j = 1; j <= len2; ++j)
d[i][j] = std::min({d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (s1[i - 1] == s2[j - 1] ? 0 : 1)});

d[i][j] = std::min({
d[i - 1][j] + 1,
d[i][j - 1] + 1,
d[i - 1][j - 1] + (s1[i - 1] == s2[j - 1] ? 0 : 1)
});
return d[len1][len2];
}

Expand Down

0 comments on commit 47490e0

Please sign in to comment.