summaryrefslogtreecommitdiff
path: root/audio/festival/patches/patch-ag
blob: c4a10594c4365346a3ce068dc8173d719a8d5963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ag,v 1.4 2007/09/02 11:03:03 joerg Exp $

--- speech_tools/stats/confusion.cc.orig	2007-09-02 09:59:39.000000000 +0000
+++ speech_tools/stats/confusion.cc
@@ -138,7 +138,11 @@ void print_confusion(const EST_FMatrix &
 	cout.precision(3);
 	cout.setf(ios::right);
 //	cout.setf(ios::fixed, ios::floatfield);
+#ifdef isnan
+	if (isnan(correct(i)))
+#else
 	if (isnanf(correct(i)))
+#endif
 	    cout << endl;
 	else
 	    cout << correct(i) << endl;