diff options
author | 2010-07-28 17:10:28 +0000 | |
---|---|---|
committer | 2010-07-28 17:10:28 +0000 | |
commit | 0afaf9b563c79ddafbceec5389806061b0989916 (patch) | |
tree | 3cc51b604af991957e13d79d9b0678ce92d43ef3 /src/utils/SkOSFile.cpp | |
parent | cb34235f46b6259b612e72c416e850e26803250a (diff) |
Fix precedence error.
Flagged as a compiler warning. It appears that it was intended that the
conjuction not bind so tightly.
git-svn-id: http://skia.googlecode.com/svn/trunk@591 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/SkOSFile.cpp')
-rw-r--r-- | src/utils/SkOSFile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/SkOSFile.cpp b/src/utils/SkOSFile.cpp index 47f43ba11e..982bc0842f 100644 --- a/src/utils/SkOSFile.cpp +++ b/src/utils/SkOSFile.cpp @@ -172,9 +172,8 @@ static bool issuffixfor(const SkString& suffix, const char str[]) { size_t suffixLen = suffix.size(); size_t strLen = strlen(str); - + return strLen >= suffixLen && - suffixLen == 0 || memcmp(suffix.c_str(), str + strLen - suffixLen, suffixLen) == 0; } |