Skip to content

Commit

Permalink
Merge pull request #3151 from rootkea/small-fixes
Browse files Browse the repository at this point in the history
Use `&X[3]` instead of `X + 3` to fix clang warnings
  • Loading branch information
masatake committed Sep 6, 2021
2 parents ca81123 + aec0c38 commit 9a7b9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsers/lisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int lisp_hint2kind (const vString *const hint)
int n;

/* 4 means strlen("(def"). */
#define EQN(X) strncmp(vStringValue (hint) + 4, X + 3, n) == 0
#define EQN(X) strncmp(vStringValue (hint) + 4, &X[3], n) == 0
switch (vStringLength (hint) - 4)
{
case 2:
Expand Down Expand Up @@ -155,7 +155,7 @@ static int elisp_hint2kind (const vString *const hint)
int n;

/* 4 means strlen("(def"). */
#define EQN(X) strncmp(vStringValue (hint) + 4, X + 3, n) == 0
#define EQN(X) strncmp(vStringValue (hint) + 4, &X[3], n) == 0
switch (vStringLength (hint) - 4)
{
case 2:
Expand Down

0 comments on commit 9a7b9bc

Please sign in to comment.