diff --git a/srcpkgs/kate/patches/gcc7-fix-abs.patch b/srcpkgs/kate/patches/gcc7-fix-abs.patch new file mode 100644 index 0000000000..56700a1cd0 --- /dev/null +++ b/srcpkgs/kate/patches/gcc7-fix-abs.patch @@ -0,0 +1,11 @@ +--- part/view/kateviewhelpers.cpp 2014-10-26 21:17:55.000000000 +0100 ++++ part/view/kateviewhelpers.cpp 2017-07-10 14:33:46.722050893 +0200 +@@ -1703,7 +1703,7 @@ + if (realLine > -1) { + if (m_viewInternal->cache()->viewLine(z).startCol() == 0) { + if (m_viRelLineNumbersOn && m_view->viInputMode()) { +- int diff = abs(realLine - currentLine); ++ int diff = abs((int)(realLine - currentLine)); + if (diff > 0) { + p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h, + Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );