Skip to content

Commit 4fc2a46

Browse files
author
Michael Fero
committed
Fixing mixed declarations for C90 compliance
1 parent db71745 commit 4fc2a46

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/util/types.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,13 @@ next_token(const char* str, size_t len,
258258
const char** str_out, size_t* len_out)
259259
{
260260
enum token_type type;
261+
unsigned int i = 0;
262+
char c = str[i];
261263

262264
if (len == 0) {
263265
return TOKEN_END;
264266
}
265267

266-
unsigned int i = 0;
267-
char c = str[i];
268-
269268
if (isalpha(c)) {
270269
type = TOKEN_NAME;
271270
while (i < len) {

0 commit comments

Comments
 (0)