commit | 2ec7280a178ad3dcfd2e645bc330eeb04a84bfcf | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 21 21:46:03 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 21 21:46:03 2011 +0000 |
tree | 1eb732a73860f0f8c5b5610a44829851ae82578b | |
parent | 53effc5e327749ea47bc0c678cb45246644600b0 [diff] [blame] |
Fix some warnings Review URL: http://codereview.appspot.com/5075049/ git-svn-id: http://skia.googlecode.com/svn/trunk@2304 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrAAHairLinePathRenderer.cpp b/gpu/src/GrAAHairLinePathRenderer.cpp index d57aa3a..8349fa7 100644 --- a/gpu/src/GrAAHairLinePathRenderer.cpp +++ b/gpu/src/GrAAHairLinePathRenderer.cpp
@@ -219,7 +219,8 @@ GrAssert(get_float_exp(3000000.f) == 21); } #endif - return (((*(int*)&x) & 0x7f800000) >> 23) - 127; + const int* iptr = (const int*)&x; + return (((*iptr) & 0x7f800000) >> 23) - 127; } // we subdivide the quads to avoid huge overfill