Home | History | Annotate | Download | only in patches
      1 --- dasher-4.10.0/Src/DasherCore/LanguageModelling/CTWLanguageModel.cpp-orig	2009-03-17 14:50:21.832479000 -0500
      2 +++ dasher-4.10.0/Src/DasherCore/LanguageModelling/CTWLanguageModel.cpp	2009-03-17 14:51:58.616845000 -0500
      3 @@ -358,7 +358,7 @@ void CCTWLanguageModel::GetProbs(Context
      4  	// calculate probabilities of all possible symbols. Again assume all 2^NrPhases 
      5  	int *Index = new int[LocalContext.Context.size()+1]; // +1 for the rootnode
      6  	
      7 -	vector <unsigned short int>Interval((1<<(NrPhases+1))-1); // number of rootnodes*2 (1 prob for bit 0 and 1 each)
      8 +	vector <unsigned int>Interval((1<<(NrPhases+1))-1); // number of rootnodes*2 (1 prob for bit 0 and 1 each)
      9  	if (Norm>65535)
     10  	{
     11  		Interval[0]=65535; // to prevent overflow
     12