diff options
author | 2012-07-11 19:45:22 +0000 | |
---|---|---|
committer | 2012-07-11 19:45:22 +0000 | |
commit | 548a433ec356cc38f73780563501a00ed937c49c (patch) | |
tree | 8a7735c9522e1e27a33adcc45fd5d0893509c004 /src/gpu/gl/GrGLPath.cpp | |
parent | 641ca9c8085584db1d640d6b279a335a2a002cb1 (diff) |
Fix linux warnings
Review URL: http://codereview.appspot.com/6354093/
git-svn-id: http://skia.googlecode.com/svn/trunk@4554 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLPath.cpp')
-rw-r--r-- | src/gpu/gl/GrGLPath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp index 217cf4dd0d..64d5a55945 100644 --- a/src/gpu/gl/GrGLPath.cpp +++ b/src/gpu/gl/GrGLPath.cpp @@ -29,7 +29,7 @@ inline GrGLubyte verb_to_gl_path_cmd(const SkPath::Verb verb) { GR_STATIC_ASSERT(3 == SkPath::kCubic_Verb); GR_STATIC_ASSERT(4 == SkPath::kClose_Verb); - GrAssert(verb >= 0 && verb < GR_ARRAY_COUNT(gTable)); + GrAssert(verb >= 0 && (size_t)verb < GR_ARRAY_COUNT(gTable)); return gTable[verb]; } @@ -47,7 +47,7 @@ inline int num_pts(const SkPath::Verb verb) { GR_STATIC_ASSERT(3 == SkPath::kCubic_Verb); GR_STATIC_ASSERT(4 == SkPath::kClose_Verb); - GrAssert(verb >= 0 && verb < GR_ARRAY_COUNT(gTable)); + GrAssert(verb >= 0 && (size_t)verb < GR_ARRAY_COUNT(gTable)); return gTable[verb]; } } |