add () to fix warning

git-svn-id: http://skia.googlecode.com/svn/trunk@1033 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-04-01 14:30:00 +00:00
parent 1493a66824
commit f1ec465f87

View File

@ -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;