diff --git a/src/ports/SkOSFile_stdio.cpp b/src/ports/SkOSFile_stdio.cpp index 6c825b4cb6..9100f6d122 100644 --- a/src/ports/SkOSFile_stdio.cpp +++ b/src/ports/SkOSFile_stdio.cpp @@ -122,7 +122,7 @@ bool sk_isdir(const char *path) if (0 != stat(path, &status)) { return false; } - return (status.st_mode & S_IFDIR); + return SkToBool(status.st_mode & S_IFDIR); } bool sk_mkdir(const char* path)