From c0812670c11411ed99404cc3f936a2cd9259bc14 Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Fri, 30 Jun 2017 07:35:21 +0200 Subject: [PATCH] Fix coding style. --- src/cc65/codegen.c | 2 +- src/grc65/main.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index d9074e539..dfc06fccc 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -3547,7 +3547,7 @@ void g_lt (unsigned flags, unsigned long val) /* Test for less than */ { static const char* const ops[4] = { - "tosltax", "tosultax", "toslteax", "tosulteax", + "tosltax", "tosultax", "toslteax", "tosulteax" }; unsigned Label; diff --git a/src/grc65/main.c b/src/grc65/main.c index d36f039e6..a53801a39 100644 --- a/src/grc65/main.c +++ b/src/grc65/main.c @@ -230,8 +230,11 @@ static int findToken (const char * const *tokenTbl, const char *token) { /* takes as input table of tokens and token, returns position in table or -1 if not found */ int i; + for (i = 0; tokenTbl[i][0]; i++) { - if (strcmp (tokenTbl[i], token) == 0) return i; + if (strcmp (tokenTbl[i], token) == 0) { + return i; + } } return -1; -- 2.39.5