summaryrefslogtreecommitdiffstats
path: root/kate/part
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-09-03 15:24:45 +0200
committerSlávek Banko <[email protected]>2016-09-03 15:24:56 +0200
commitfe024a800dbbbf69f282aa53af7b88ee6c2d8672 (patch)
tree934ec2f769736dca7ea4897cfa174b73ac037331 /kate/part
parent0d22b7ffc6ba832bc396390dbc45a8a11efce476 (diff)
downloadtdelibs-fe024a800dbbbf69f282aa53af7b88ee6c2d8672.tar.gz
tdelibs-fe024a800dbbbf69f282aa53af7b88ee6c2d8672.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5)
Diffstat (limited to 'kate/part')
-rw-r--r--kate/part/katebuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kate/part/katebuffer.cpp b/kate/part/katebuffer.cpp
index 61f81fadf..66c21696b 100644
--- a/kate/part/katebuffer.cpp
+++ b/kate/part/katebuffer.cpp
@@ -122,7 +122,7 @@ class KateFileLoader
if ((c >= 2) && (m_codec->mibEnum() == 1000) && (m_buffer[1] == 0x00))
{
// utf16LE, we need to put the decoder in LE mode
- char reverseUtf16[3] = {0xFF, 0xFE, 0x00};
+ char reverseUtf16[3] = {'\xFF', '\xFE', '\x00'};
m_decoder->toUnicode(reverseUtf16, 2);
}
@@ -917,7 +917,7 @@ void KateBuffer::updatePreviousNotEmptyLine(KateBufBlock *blk,uint current_line,
} while (textLine->firstChar()==-1);
kdDebug(13020)<<"updatePreviousNotEmptyLine: updating line:"<<(blk->startLine()+current_line)<<endl;
TQMemArray<uint> foldingList=textLine->foldingListArray();
- while ( (foldingList.size()>0) && ( abs(foldingList[foldingList.size()-2])==1)) {
+ while ( (foldingList.size()>0) && ( labs(foldingList[foldingList.size()-2])==1)) {
foldingList.resize(foldingList.size()-2,TQGArray::SpeedOptim);
}
addIndentBasedFoldingInformation(foldingList,addindent,deindent);