mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user