You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/02/03 21:26:36 UTC

[incubator-nuttx] branch master updated: tools/nxstyle.c: Fix logic error in previous change.

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new dfcbc42  tools/nxstyle.c:  Fix logic error in previous change.
dfcbc42 is described below

commit dfcbc42679f5ee1c66185e829730c82b00473e8c
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Mon Feb 3 13:53:23 2020 -0600

    tools/nxstyle.c:  Fix logic error in previous change.
---
 tools/nxstyle.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index 8ee609e..2167647 100644
--- a/tools/nxstyle.c
+++ b/tools/nxstyle.c
@@ -1274,8 +1274,7 @@ int main(int argc, char **argv, char **envp)
 
                   /* Ignore inttype.h strings beginning with PRIx */
 
-                  if (ident_index >= 4 &&
-                     (strncmp(&line[ident_index], "PRIx", 4) == 0))
+                  if ((strncmp(&line[ident_index], "PRIx", 4) == 0))
                     {
                       /* No error */
                     }