Index: include/core/SkReader32.h |
diff --git a/include/core/SkReader32.h b/include/core/SkReader32.h |
index 40ae12ce23638c05755f5742e0ecaf63f8b22401..7e8038d0ae3a7913cf3c5ee036b866b7720e0963 100644 |
--- a/include/core/SkReader32.h |
+++ b/include/core/SkReader32.h |
@@ -33,14 +33,14 @@ public: |
fStop = (const char*)data + size; |
} |
- uint32_t size() const { return SkToU32(fStop - fBase); } |
- uint32_t offset() const { return SkToU32(fCurr - fBase); } |
+ size_t size() const { return fStop - fBase; } |
+ size_t offset() const { return fCurr - fBase; } |
bool eof() const { return fCurr >= fStop; } |
const void* base() const { return fBase; } |
const void* peek() const { return fCurr; } |
- uint32_t available() const { return SkToU32(fStop - fCurr); } |
- bool isAvailable(uint32_t size) const { return fCurr + size <= fStop; } |
+ size_t available() const { return fStop - fCurr; } |
+ bool isAvailable(size_t size) const { return fCurr + size <= fStop; } |
void rewind() { fCurr = fBase; } |