Skip to content

Commit 6f25568

Browse files
committed
PowerShell: remove unnecessary casts
1 parent 83c1a09 commit 6f25568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parsers/powershell.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ static void parseString (vString *const string, const int delimiter)
228228
int c = getcFromInputFile ();
229229

230230
if (c == '\\' && (c = getcFromInputFile ()) != EOF)
231-
vStringPut (string, (char) c);
231+
vStringPut (string, c);
232232
else if (c == EOF || c == delimiter)
233233
break;
234234
else
235-
vStringPut (string, (char) c);
235+
vStringPut (string, c);
236236
}
237237
}
238238

@@ -241,7 +241,7 @@ static void parseIdentifier (vString *const string, const int firstChar)
241241
int c = firstChar;
242242
do
243243
{
244-
vStringPut (string, (char) c);
244+
vStringPut (string, c);
245245
c = getcFromInputFile ();
246246
} while (isIdentChar (c));
247247
ungetcToInputFile (c);

0 commit comments

Comments
 (0)