[irstlm] 58/78: fixed a couple of minor type inconsistencies

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to tag adaptiveLM.v0.10
in repository irstlm.

commit cf2508f8748c157423bf70bb4e27f6ac1ebff8df
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Wed Dec 2 16:26:27 2015 +0100

    fixed a couple of minor type inconsistencies
---
 src/lmInterpolation.cpp | 2 +-
 src/lmtable.cpp         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lmInterpolation.cpp b/src/lmInterpolation.cpp
index ac81bed..e9e9e60 100644
--- a/src/lmInterpolation.cpp
+++ b/src/lmInterpolation.cpp
@@ -147,7 +147,7 @@ namespace irstlm {
 		double _logpr;
 		
 		char* _maxsuffptr=NULL,*actualmaxsuffptr=NULL;
-		ngram_state_t _maxsuffidx=NULL,actualmaxsuffidx=NULL;
+		ngram_state_t _maxsuffidx=0,actualmaxsuffidx=0;
 		unsigned int _statesize=0,actualstatesize=0;
 		int _bol=0,actualbol=MAX_NGRAM;
 		double _bow=0.0,actualbow=0.0; 
diff --git a/src/lmtable.cpp b/src/lmtable.cpp
index e6bdfee..3efaa0c 100644
--- a/src/lmtable.cpp
+++ b/src/lmtable.cpp
@@ -2566,7 +2566,7 @@ namespace irstlm {
 		if (ong.size==0) {
 			if (statesize!=NULL) *statesize=0;
 			if (state!=NULL) *state=NULL;
-			if (ngramstate!=NULL) *ngramstate=NULL;
+			if (ngramstate!=NULL) *ngramstate=0;
 			if (extendible!=NULL) *extendible=false;
 			if (lastbow!=NULL) *lastbow=false;
 			return 0.0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list