Fixed comparison between pointer and integer in ACC's token.c.

SVN r1293 (trunk)
This commit is contained in:
Christoph Oelckers 2008-11-18 08:26:26 +00:00
parent d310c2c361
commit ef63d00f3c

View file

@ -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;
NextChr();
}
*text = 0;