diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-23 23:25:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-23 23:25:26 +0100 |
| commit | 374f98356ccd078a138598292565872bfcb3061f (patch) | |
| tree | a3e526001763b7c4b79ab9300fb81d89c736430f /src/common.cpp | |
| parent | 20529c6512b573f1905b085097d3b0130fb3c5c7 (diff) | |
| parent | 0d20190b0f24c32b83099936003dced0ac15d62d (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.cpp b/src/common.cpp index 9497aaf18..3216a8725 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -974,8 +974,8 @@ MemoryMappedFileError memory_map_file_32(char const *fullpath, MemoryMappedFile #define USE_DAMERAU_LEVENSHTEIN 1 isize levenstein_distance_case_insensitive(String const &a, String const &b) { - isize w = a.len+1; - isize h = b.len+1; + isize w = b.len+1; + isize h = a.len+1; isize *matrix = gb_alloc_array(temporary_allocator(), isize, w*h); for (isize i = 0; i <= a.len; i++) { matrix[i*w + 0] = i; |