mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
Fixed compiling error of cli on Windows
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user