diff options
author | Michele Calgaro <[email protected]> | 2022-05-12 19:04:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-05-12 22:57:36 +0900 |
commit | 79949811e08fc5c91e9e3e09e059351749364ab7 (patch) | |
tree | 2b325eb92789a940b3747c6b67a88648eae4f154 /filters | |
parent | de8a8ab3e5e70b6cafc3d95bfec600c31f90d736 (diff) | |
download | koffice-79949811e08fc5c91e9e3e09e059351749364ab7.tar.gz koffice-79949811e08fc5c91e9e3e09e059351749364ab7.zip |
Fix FTBFS with clang. This resolves issue #25.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'filters')
-rw-r--r-- | filters/kspread/excel/sidewinder/cell.cpp | 2 | ||||
-rw-r--r-- | filters/kword/rtf/import/rtfimport.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/filters/kspread/excel/sidewinder/cell.cpp b/filters/kspread/excel/sidewinder/cell.cpp index b9000ba3..408dae88 100644 --- a/filters/kspread/excel/sidewinder/cell.cpp +++ b/filters/kspread/excel/sidewinder/cell.cpp @@ -117,7 +117,7 @@ UString Cell::columnLabel( unsigned column ) CellPrivate::columnNames[c] = UString(UChar((char)'A'+c)); for(unsigned d = 0; d < 256-26; d++) { - char buf[3] = { 'A'+(d/26), 'A'+(d%26), 0}; + char buf[3] = { (char)('A'+(d / 26)), (char)('A'+(d % 26)), 0}; CellPrivate::columnNames[d+26] = UString(buf); } diff --git a/filters/kword/rtf/import/rtfimport.cpp b/filters/kword/rtf/import/rtfimport.cpp index 573498eb..37275173 100644 --- a/filters/kword/rtf/import/rtfimport.cpp +++ b/filters/kword/rtf/import/rtfimport.cpp @@ -1267,7 +1267,7 @@ void RTFImport::insertHexSymbol( RTFProperty * ) return; } - char tmpch[2] = {token.value, '\0'}; + char tmpch[2] = {(char)(token.value), '\0'}; char *tk = token.text; token.type = RTFTokenizer::PlainText; |