summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-28 10:51:02 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-28 15:00:28 +0000
commit6e376202fca5c4f77645ba0eeee56ef3c44615a3 (patch)
treeb9bda0a1572e0b2af4bc5ec63f505ac1aa8f547a /core/fpdfapi
parent5f95f36cac52c92d34bffbfa22a7da49d0653978 (diff)
downloadpdfium-6e376202fca5c4f77645ba0eeee56ef3c44615a3.tar.xz
Remove no-op cast
Change-Id: I2427e29291218a7b004591673bd5281f23f1284a Reviewed-on: https://pdfium-review.googlesource.com/15091 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/edit/cpdf_creator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.cpp b/core/fpdfapi/edit/cpdf_creator.cpp
index 5f209a634f..06ffa5a87c 100644
--- a/core/fpdfapi/edit/cpdf_creator.cpp
+++ b/core/fpdfapi/edit/cpdf_creator.cpp
@@ -102,7 +102,7 @@ bool CFX_FileBufferArchive::WriteByte(uint8_t byte) {
bool CFX_FileBufferArchive::WriteDWord(uint32_t i) {
char buf[32];
FXSYS_itoa(i, buf, 10);
- return WriteBlock(buf, static_cast<size_t>(strlen(buf)));
+ return WriteBlock(buf, strlen(buf));
}
bool CFX_FileBufferArchive::WriteString(const ByteStringView& str) {