diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-01 14:30:00 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-01 14:30:00 +0000 |
commit | f1ec465f87ec991cf095da2d1c02b776183abbd0 (patch) | |
tree | 4582e2910ad8d3896e18d5394cfd7f48b33aad4b /include/core/SkMetaData.h | |
parent | 1493a66824c0b811ffd17b2da10a9a2e5c83ec2b (diff) |
add () to fix warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1033 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkMetaData.h')
-rw-r--r-- | include/core/SkMetaData.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkMetaData.h b/include/core/SkMetaData.h index 5e6f376f45..ee2fa2b351 100644 --- a/include/core/SkMetaData.h +++ b/include/core/SkMetaData.h @@ -74,8 +74,8 @@ public: } bool hasString(const char name[], const char value[]) const { const char* v = this->findString(name); - return v == NULL && value == NULL || - v != NULL && value != NULL && !strcmp(v, value); + return (v == NULL && value == NULL) || + (v != NULL && value != NULL && !strcmp(v, value)); } bool hasPtr(const char name[], void* value) const { void* v; |