aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-01 16:28:23 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-01 16:28:23 +0000
commit6e7251669cc57515fd2783865fc1cdd49b8b6b9a (patch)
treefbe6c369c8acf68277ddaaa054af3b9fddc695c7
parent115b06f3d51902a122621e897360ba80153527b3 (diff)
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
-rw-r--r--src/ports/SkOSFile_stdio.cpp2
1 files changed, 1 insertions, 1 deletions
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)