diff options
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index c3a43bf8a34d..8a83512c06ae 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -386,7 +386,7 @@ void SvRTFParser::ScanText() if (nSlash != '\\' || nNextCh != '\'') { rInput.SeekRel(-1); - nNextCh = nSlash; + nNextCh = static_cast<unsigned char>(nSlash); break; } } @@ -582,7 +582,8 @@ SvParserState SvRTFParser::CallParser() { sal_Char cFirstCh; nNextChPos = rInput.Tell(); - rInput.ReadChar( cFirstCh ); nNextCh = cFirstCh; + rInput.ReadChar( cFirstCh ); + nNextCh = static_cast<unsigned char>(cFirstCh); eState = SvParserState::Working; nOpenBrakets = 0; eCodeSet = RTL_TEXTENCODING_MS_1252; |