diff options
author | antirez <antirez@gmail.com> | 2020-04-02 21:17:31 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-04-02 21:17:31 +0200 |
commit | ef610802c7262f60c3418ba7e19524636a5c0c8e (patch) | |
tree | c8ee4f57998f173fb87c440ea0ee975f895a1958 | |
parent | 5a3d85745ad5abe8b7e9ae11c062a0a1b4220387 (diff) | |
download | redis-lcs.tar.gz |
LCS: fix stale comment.lcs
-rw-r--r-- | src/t_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_string.c b/src/t_string.c index fb53f7c54..80cdbb5e1 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -558,7 +558,7 @@ void lcsCommand(client *c) { /* Setup an uint32_t array to store at LCS[i,j] the length of the * LCS A0..i-1, B0..j-1. Note that we have a linear array here, so - * we index it as LCS[i+alen*j] */ + * we index it as LCS[j+(blen+1)*j] */ uint32_t *lcs = zmalloc((alen+1)*(blen+1)*sizeof(uint32_t)); #define LCS(A,B) lcs[(B)+((A)*(blen+1))] |