Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Unified Diff: core/src/fxcrt/extension.h

Issue 417263008: Correct the names of the FX_SAFE_* typedefs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix FX_SAFE_SIZE_T and whitespace too. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxcrt/extension.h
diff --git a/core/src/fxcrt/extension.h b/core/src/fxcrt/extension.h
index d04d1da55011a2fd93afb1b25b9adbdbc01d7993..6221d14fc7be9f711779ea1f6ea32738cb9ae65c 100644
--- a/core/src/fxcrt/extension.h
+++ b/core/src/fxcrt/extension.h
@@ -230,7 +230,7 @@ public:
offset = safeOffset.ValueOrDie();
- FX_SAFE_SIZET newPos = size;
+ FX_SAFE_SIZE_T newPos = size;
newPos += offset;
if (!newPos.IsValid() || newPos.ValueOrDefault(0) == 0 || newPos.ValueOrDie() >= m_nCurSize) {
return FALSE;
@@ -282,7 +282,7 @@ public:
offset += (FX_FILESIZE)m_nOffset;
}
if (m_dwFlags & FX_MEMSTREAM_Consecutive) {
- FX_SAFE_SIZET newPos = size;
+ FX_SAFE_SIZE_T newPos = size;
newPos += offset;
if (!newPos.IsValid())
return FALSE;
@@ -308,7 +308,7 @@ public:
return TRUE;
}
- FX_SAFE_SIZET newPos = size;
+ FX_SAFE_SIZE_T newPos = size;
newPos += offset;
if (!newPos.IsValid()) {
return FALSE;
« no previous file with comments | « core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698