aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDescriptor.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-19 22:00:40 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-19 22:00:40 +0000
commit2cfa3200fda29279eba1240170c7e873d12f9d48 (patch)
tree42c50379d08cfbbf9d2af7b316010feafe1b1f78 /src/core/SkDescriptor.h
parent2dceedaa1e4dfb9accc82d8e3d3afac9ba5b2142 (diff)
fix warnings around size_t/int
fix warnings around undeclared (non-static) functions TBR=bsalomon@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/242643008 git-svn-id: http://skia.googlecode.com/svn/trunk@14267 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkDescriptor.h')
-rw-r--r--src/core/SkDescriptor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkDescriptor.h b/src/core/SkDescriptor.h
index e71ff41b5c..c526451af5 100644
--- a/src/core/SkDescriptor.h
+++ b/src/core/SkDescriptor.h
@@ -37,14 +37,14 @@ public:
uint32_t getLength() const { return fLength; }
- void* addEntry(uint32_t tag, uint32_t length, const void* data = NULL) {
+ void* addEntry(uint32_t tag, size_t length, const void* data = NULL) {
SkASSERT(tag);
SkASSERT(SkAlign4(length) == length);
SkASSERT(this->findEntry(tag, NULL) == NULL);
Entry* entry = (Entry*)((char*)this + fLength);
entry->fTag = tag;
- entry->fLen = length;
+ entry->fLen = SkToU32(length);
if (data) {
memcpy(entry + 1, data, length);
}