Merge pull request #657 from SuperWangKai/master

Fixed compiling error of cli on Windows
This commit is contained in:
Bob Nystrom 2019-02-20 09:00:22 -08:00 committed by GitHub
commit 487f53ace1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ static size_t absolutePrefixLength(const char* path)
// Drive letter. // Drive letter.
if (isDriveLetter(path[0]) && path[1] == ':') if (isDriveLetter(path[0]) && path[1] == ':')
{ {
if (isSeparator(path->chars[2])) if (isSeparator(path[2]))
{ {
// Fully absolute path. // Fully absolute path.
return 3; return 3;