From 5d2fef0d83f59fc982d78c91c8757d6016bd99c4 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 30 Jun 2011 21:17:22 +0000 Subject: [PATCH] fix asserts in new premul inline function git-svn-id: http://skia.googlecode.com/svn/trunk@1773 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkColorPriv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/core/SkColorPriv.h b/include/core/SkColorPriv.h index bd680f3fa..6a6944cff 100644 --- a/include/core/SkColorPriv.h +++ b/include/core/SkColorPriv.h @@ -219,9 +219,9 @@ static inline SkPMColor SkPackARGB32NoCheck(U8CPU a, U8CPU r, U8CPU g, U8CPU b) static inline SkPMColor SkPremultiplyARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { SkA32Assert(a); - SkASSERT(r <= a); - SkASSERT(g <= a); - SkASSERT(b <= a); + SkA32Assert(r); + SkA32Assert(g); + SkA32Assert(b); if (a != 255) { r = SkMulDiv255Round(r, a);