diff options
author | bsalomon <bsalomon@google.com> | 2014-12-11 13:31:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-11 13:31:06 -0800 |
commit | ccb328d52a58612b65677b9266a297dac795b0df (patch) | |
tree | ddf5212afe67e6c021b012af97c79d99004e8bb6 /src/core | |
parent | e556089dd1a2ff52ba1b61211e66968c08a970ce (diff) |
Fix some win64 warnings.
Review URL: https://codereview.chromium.org/795223002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkDescriptor.h | 4 | ||||
-rw-r--r-- | src/core/SkVarAlloc.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkDescriptor.h b/src/core/SkDescriptor.h index d550863568..22ec29316f 100644 --- a/src/core/SkDescriptor.h +++ b/src/core/SkDescriptor.h @@ -42,7 +42,7 @@ public: SkASSERT(SkAlign4(length) == length); SkASSERT(this->findEntry(tag, NULL) == NULL); - Entry* entry = (Entry*)((char*)this + fLength); + Entry* entry = (Entry*)((char*)this + fLength); entry->fTag = tag; entry->fLen = SkToU32(length); if (data) { @@ -50,7 +50,7 @@ public: } fCount += 1; - fLength += sizeof(Entry) + length; + fLength = SkToU32(fLength + sizeof(Entry) + length); return (entry + 1); // return its data } diff --git a/src/core/SkVarAlloc.h b/src/core/SkVarAlloc.h index 2e8f19c8fe..4031992721 100644 --- a/src/core/SkVarAlloc.h +++ b/src/core/SkVarAlloc.h @@ -19,7 +19,7 @@ public: char* ptr = fByte; fByte += bytes; - fRemaining -= bytes; + fRemaining = SkToU32(fRemaining - bytes); return ptr; } |