Skip to content

Commit

Permalink
bug in levenstien i just added by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
briancullinan2 committed Oct 4, 2024
1 parent f8f50f8 commit 0fd1012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/qcommon/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -5134,7 +5134,7 @@ int levenshtein(const char *s, const char *t)
int n = strlen(s);
int m = strlen(t);
int **d;
d = Z_TagMalloc((n + 1) * (m + 1), TAG_SMALL);
d = malloc((n + 1) * (m + 1));

if (n == 0) {
return m;
Expand Down Expand Up @@ -5167,7 +5167,7 @@ int levenshtein(const char *s, const char *t)
}
}

Z_Free(d);
free(d);
return d[n][m];
}
#endif
Expand Down
Binary file modified docs/quake3e.wasm
Binary file not shown.

0 comments on commit 0fd1012

Please sign in to comment.