diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-07-27 14:37:02 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-27 19:15:34 +0000 |
commit | 5facffcab55afe2448a6b78fd46d113da59db1d8 (patch) | |
tree | dc18e173d5db979de69afa54463957e01fe82fd5 /xfa/fxfa | |
parent | 8318658ccc9b1afd4472f136c7172b1568d12ab8 (diff) | |
download | pdfium-5facffcab55afe2448a6b78fd46d113da59db1d8.tar.xz |
Remove 0 from the valid FormCalc characters
0 is not actually in the spec for characters and was only included due
quirks in how the lexing code was written. Due to changes in the
lexer, it is no longer needed and a potential source of errors.
Bug:
Change-Id: I6fbba027e40aaa286ed4c89a6c569d26e3d4cd8b
Reviewed-on: https://pdfium-review.googlesource.com/9350
Reviewed-by: (OOO Jul 28 - Aug 8) dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmlexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmlexer.cpp b/xfa/fxfa/fm2js/cxfa_fmlexer.cpp index 5e5761702b..16e07b5b4f 100644 --- a/xfa/fxfa/fm2js/cxfa_fmlexer.cpp +++ b/xfa/fxfa/fm2js/cxfa_fmlexer.cpp @@ -15,7 +15,7 @@ namespace { bool IsFormCalcCharacter(wchar_t c) { - return c == 0 || (c >= 0x09 && c <= 0x0D) || (c >= 0x20 && c <= 0xd7FF) || + return (c >= 0x09 && c <= 0x0D) || (c >= 0x20 && c <= 0xd7FF) || (c >= 0xE000 && c <= 0xFFFD); } |