aboutsummaryrefslogtreecommitdiff
path: root/audio/festival/files/patch-long-over-float
blob: e41f33d092a80115e9302e4e40d361eac8953f5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Part of Debian's patch at:
	http://patch-tracker.debian.org/patch/series/view/festival/1:2.1~release-5.1/src_modules_MultiSyn_path_fixes.diff

--- festival/src/modules/MultiSyn/TargetCostRescoring.cc	2011-02-16 10:35:34.000000000 -0600
+++ festival/src/modules/MultiSyn/TargetCostRescoring.cc	2011-02-16 10:43:23.000000000 -0600
@@ -82,7 +82,7 @@
   //cerr << scores << endl;
   
   // calculate simple mean duration of some or all of candidates
-  float meandur = 0.0;
+  long meandur = 0.0;
   int n = 0;
 
   if( beam_width < 0 ){ // just average all of them
@@ -107,7 +107,7 @@
 
   // then tweak the scores based on that
   for( EST_Litem *li = scores.head(); li != 0; li = li->next() ){
-    float cand_dur = scores(li)._dur; 
+    long cand_dur = scores(li)._dur;
     //    cerr << scores(li)._cand->score << " ";
     scores(li)._cand->score += (mult * abs( cand_dur - meandur ) );
     //    cerr << scores(li)._cand->score << endl;