aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-11 13:31:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-11 13:31:06 -0800
commitccb328d52a58612b65677b9266a297dac795b0df (patch)
treeddf5212afe67e6c021b012af97c79d99004e8bb6 /src/core
parente556089dd1a2ff52ba1b61211e66968c08a970ce (diff)
Fix some win64 warnings.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkDescriptor.h4
-rw-r--r--src/core/SkVarAlloc.h2
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;
}