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
This commit is contained in:
parent
44566e2a15
commit
1f64a21df9
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user