diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-24 18:45:17 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-24 18:45:17 +0000 |
commit | 1f64a21df960293a9d6a9b50c4575d0a9f0bffdc (patch) | |
tree | baff331f96de4e6bf04ffb0e05f94ebae51a0c76 /src/pipe | |
parent | 44566e2a157915974cfc08819e8f9182690092a1 (diff) |
Fix build: these asserts are always now true, which GCC warns about
R=mtklein@google.com
TBR=reed
NOTRY=true
NOTREECHECKS=true
BUG=skia:
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/256453007
git-svn-id: http://skia.googlecode.com/svn/trunk@14359 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pipe')
-rw-r--r-- | src/pipe/SkGPipeRead.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp index af3ec1ee04..41c417f92e 100644 --- a/src/pipe/SkGPipeRead.cpp +++ b/src/pipe/SkGPipeRead.cpp @@ -231,14 +231,12 @@ private: /////////////////////////////////////////////////////////////////////////////// template <typename T> const T* skip(SkReader32* reader, size_t count = 1) { - SkASSERT(count >= 0); size_t size = sizeof(T) * count; SkASSERT(SkAlign4(size) == size); return reinterpret_cast<const T*>(reader->skip(size)); } template <typename T> const T* skipAlign(SkReader32* reader, size_t count = 1) { - SkASSERT(count >= 0); size_t size = SkAlign4(sizeof(T) * count); return reinterpret_cast<const T*>(reader->skip(size)); } |