diff options
author | Oliver Chang <ochang@chromium.org> | 2015-12-14 15:01:05 -0800 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2015-12-14 15:01:05 -0800 |
commit | 1eb7477b3e7c5cb7c54ca364810ab9a24acad4f9 (patch) | |
tree | 3b6bdd7b1e31be96b6ee39b8ae8a4f0202e0b18f /core/include/fxcrt/fx_basic.h | |
parent | be8408f43bcfd69a74007a340a4c034004146c60 (diff) | |
download | pdfium-1eb7477b3e7c5cb7c54ca364810ab9a24acad4f9.tar.xz |
Properly land "Fix hint table loading issues."
TBR=thestig@chromium.org
BUG=566179
Review URL: https://codereview.chromium.org/1524983002 .
Diffstat (limited to 'core/include/fxcrt/fx_basic.h')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 5d3fc33d6f..8a39729fd0 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -811,9 +811,9 @@ class CFX_BitStream { void Rewind() { m_BitPos = 0; } - FX_DWORD GetPos() { return m_BitPos; } + FX_DWORD GetPos() const { return m_BitPos; } - FX_DWORD BitsRemaining() { + FX_DWORD BitsRemaining() const { return m_BitSize >= m_BitPos ? m_BitSize - m_BitPos : 0; } |