Skip to content

Commit b27f1a9

Browse files
committed
Ensuring a space is printed in return type AFTER the keyword
1 parent 3b6e925 commit b27f1a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,11 +2202,11 @@ static void parseReturnType (statementInfo *const st)
22022202
vStringPut (ReturnType, '&');
22032203
break;
22042204

2205-
case TOKEN_KEYWORD:
2206-
vStringPut (ReturnType, ' ');
2207-
22082205
default:
22092206
vStringCat (ReturnType, curr_tok->name);
2207+
if (curr_tok->type == TOKEN_KEYWORD) {
2208+
vStringPut (ReturnType, ' ');
2209+
}
22102210
break;
22112211
}
22122212
}

0 commit comments

Comments
 (0)