aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sfnt
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-12 08:51:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-12 08:51:39 -0800
commitef3fcd877aa78c1d0ac802043cd8785180304c12 (patch)
tree7129a84e40a97532af73b6fddc5cab5c663280ef /src/sfnt
parent81a6c3cc75aae33a7334e6071b066537930b8558 (diff)
More win64 warning fixes
Diffstat (limited to 'src/sfnt')
-rw-r--r--src/sfnt/SkOTUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sfnt/SkOTUtils.cpp b/src/sfnt/SkOTUtils.cpp
index 0e009528b4..1d3843d061 100644
--- a/src/sfnt/SkOTUtils.cpp
+++ b/src/sfnt/SkOTUtils.cpp
@@ -129,7 +129,7 @@ SkData* SkOTUtils::RenameFont(SkStream* fontData, const char* fontName, int font
nameRecords[i].languageID.windows.value = SkOTTableName::Record::LanguageID::Windows::English_UnitedStates;
nameRecords[i].nameID.predefined.value = namesToCreate[i];
nameRecords[i].offset = SkEndian_SwapBE16(0);
- nameRecords[i].length = SkEndian_SwapBE16(fontNameLen * sizeof(wchar_t));
+ nameRecords[i].length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(wchar_t)));
}
SK_OT_USHORT* nameString = reinterpret_cast<SK_OT_USHORT*>(data + originalDataSize + stringOffset);