app-accessibility/epos: Fix building with GCC-7

Bug: https://bugs.gentoo.org/638596
Closes: https://bugs.gentoo.org/638596
Closes: https://github.com/gentoo/gentoo/pull/7760
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7760
This commit is contained in:
Peter Levine
2018-04-04 23:09:32 +02:00
committed by Andreas Sturmlechner
parent 0de10539d6
commit 8fbdb72214
2 changed files with 23 additions and 0 deletions
@@ -23,6 +23,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.5.37-gcc45.patch
"${FILESDIR}"/${PN}-2.5.37-gcc47.patch
"${FILESDIR}"/${PN}-2.5.37-disable-tests.patch
"${FILESDIR}"/${PN}-2.5.37-gcc7.patch
)
src_prepare() {
@@ -0,0 +1,22 @@
Bug: https://bugs.gentoo.org/638596
--- a/src/nnet/matrix.cc
+++ b/src/nnet/matrix.cc
@@ -63,7 +63,7 @@
template<class T> void CMatrix<T>::multiplyByTransponed (const CMatrix &y, CMatrix &retval)
{
int i,j,k;
- assert (cols == y.cols);
+ this->assert (cols == y.cols);
if (cols != y.cols) { retval.Realloc (0,0); return; }
T sum;
@@ -80,7 +80,7 @@
template<class T> void CMatrix<T>::transponedMultiply (const CMatrix &y, CMatrix &retval)
{
int i,j,k;
- assert (rows == y.rows);
+ this->assert (rows == y.rows);
if (rows != y.rows) { retval.Realloc (0,0); return; }
T sum;