aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-01 15:34:14 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-01 15:34:14 +0000
commite174ea4bb1f07c4d15c50716012e5c8429e9afeb (patch)
tree32e9ff6540f4466a177df3e38562b409f75fef31 /include
parent2869820cb5cb09fc9cd0153003859c24d77851a6 (diff)
Fix some warnings when including some Skia headers in Chromium code under VS2008.
Review URL: http://codereview.appspot.com/4956058/ git-svn-id: http://skia.googlecode.com/svn/trunk@2209 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkRect.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index f4b446c1bd..f221cc880d 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -336,12 +336,12 @@ struct SK_API SkRect {
SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); }
SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); }
- friend int operator==(const SkRect& a, const SkRect& b) {
- return !memcmp(&a, &b, sizeof(a));
+ friend bool operator==(const SkRect& a, const SkRect& b) {
+ return 0 == memcmp(&a, &b, sizeof(a));
}
- friend int operator!=(const SkRect& a, const SkRect& b) {
- return memcmp(&a, &b, sizeof(a));
+ friend bool operator!=(const SkRect& a, const SkRect& b) {
+ return 0 != memcmp(&a, &b, sizeof(a));
}
/** return the 4 points that enclose the rectangle