Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
toml: Fixed some implicit conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
bauhaus93 committed Jan 18, 2020
1 parent 3780470 commit 125fd38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/toml/lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static char * readString (char terminatorChar, bool isMultiline, Driver * driver

while (terminatorCount < terminatorMax)
{
char c = input ();
char c = (char) input ();
if (c == terminatorChar)
{
if (terminatorChar == BASIC_TERMINATOR || terminatorChar == LITERAL_TERMINATOR)
Expand Down Expand Up @@ -463,7 +463,7 @@ static void readNonAsciiChar (Buffer * buffer, Driver * driver)
if (utfLen > 0)
{

bufferAddChar (buffer, c, driver);
bufferAddChar (buffer, (char) c, driver);
for (int i = 1; i < utfLen; i++)
{
c = (unsigned char) input ();
Expand All @@ -473,7 +473,7 @@ static void readNonAsciiChar (Buffer * buffer, Driver * driver)
}
else
{
bufferAddChar (buffer, c, driver);
bufferAddChar (buffer, (char) c, driver);
}
}
}
Expand Down

0 comments on commit 125fd38

Please sign in to comment.