Index: src/pipe/SkGPipeRead.cpp |
diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp |
index f95bb7c40463ade677f035a4f4c33cb6b2101fc2..af3ec1ee04cd2d2e1977c95c4ca5d26fe20e9a1c 100644 |
--- a/src/pipe/SkGPipeRead.cpp |
+++ b/src/pipe/SkGPipeRead.cpp |
@@ -230,14 +230,14 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-template <typename T> const T* skip(SkReader32* reader, int count = 1) { |
+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, int count = 1) { |
+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)); |