From 6e7251669cc57515fd2783865fc1cdd49b8b6b9a Mon Sep 17 00:00:00 2001 From: "scroggo@google.com" Date: Thu, 1 Nov 2012 16:28:23 +0000 Subject: [PATCH] Use SkToBool to fix a warning. Review URL: https://codereview.appspot.com/6818069 git-svn-id: http://skia.googlecode.com/svn/trunk@6240 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/ports/SkOSFile_stdio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)