From: Piotr Fusik Date: Fri, 30 Jun 2017 05:35:21 +0000 (+0200) Subject: Fix coding style. X-Git-Tag: V2.17~119^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0812670c11411ed99404cc3f936a2cd9259bc14;p=cc65 Fix coding style. --- 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;