aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-12 16:41:46 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-12 16:41:46 -0800
commitfbaace082745a0e301186b2d3b84af62e2fb87ec (patch)
tree27982934bbf0defcc05ee93bdae535cd2863b8ff /third_party
parentf6139f7c3867a70a750620cd34ce10338a54086e (diff)
DM warning-free on win64
Diffstat (limited to 'third_party')
-rw-r--r--third_party/ktx/ktx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/ktx/ktx.cpp b/third_party/ktx/ktx.cpp
index 7cc2f28585..42b3ca119f 100644
--- a/third_party/ktx/ktx.cpp
+++ b/third_party/ktx/ktx.cpp
@@ -500,7 +500,7 @@ bool SkKTXFile::WriteBitmapToKTX(SkWStream* stream, const SkBitmap& bitmap) {
size_t kvsize = kv->size();
kvsize += 4;
kvsize = (kvsize + 3) & ~3;
- hdr.fBytesOfKeyValueData += kvsize;
+ hdr.fBytesOfKeyValueData = SkToU32(hdr.fBytesOfKeyValueData + kvsize);
}
// Write the header