mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-14 08:31:05 +00:00
Fixed comparison between pointer and integer in ACC's token.c.
SVN r1293 (trunk)
This commit is contained in:
parent
d310c2c361
commit
ef63d00f3c
1 changed files with 2 additions and 5 deletions
7
token.c
7
token.c
|
@ -320,7 +320,7 @@ void TK_AddIncludePath(char *sourcePath)
|
|||
strcpy(IncludePaths[NumIncludePaths], sourcePath);
|
||||
|
||||
// Not ending with directory delimiter?
|
||||
if((IncludePaths[NumIncludePaths] + strlen(IncludePaths[NumIncludePaths]) - 1) != DIRECTORY_DELIMITER_CHAR)
|
||||
if(*(IncludePaths[NumIncludePaths] + strlen(IncludePaths[NumIncludePaths]) - 1) != DIRECTORY_DELIMITER_CHAR)
|
||||
{
|
||||
// Add a directory delimiter to the include path
|
||||
strcat(IncludePaths[NumIncludePaths], DIRECTORY_DELIMITER);
|
||||
|
@ -1008,10 +1008,7 @@ static void ProcessQuoteToken(void)
|
|||
*text++ = Chr;
|
||||
}
|
||||
// escape the character after a backslash [JB]
|
||||
if(Chr == ASCII_BACKSLASH)
|
||||
escaped ^= (Chr == ASCII_BACKSLASH);
|
||||
else
|
||||
escaped = FALSE;
|
||||
escaped ^= (Chr == ASCII_BACKSLASH);
|
||||
NextChr();
|
||||
}
|
||||
*text = 0;
|
||||
|
|
Loading…
Reference in a new issue