Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
a4c49070
Commit
a4c49070
authored
Apr 02, 2020
by
antirez
Browse files
LCS: fix stale comment.
parent
cb92c23d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
a4c49070
...
...
@@ -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))]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment