Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'irstlm/src/ngramcache.cpp')
-rw-r--r--irstlm/src/ngramcache.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/irstlm/src/ngramcache.cpp b/irstlm/src/ngramcache.cpp
index 3b4234bcc..7c52d5206 100644
--- a/irstlm/src/ngramcache.cpp
+++ b/irstlm/src/ngramcache.cpp
@@ -57,15 +57,12 @@ void ngramcache::reset(int n){
entries=0;
}
-
-
-
char* ngramcache::get(const int* ngp,char* info){
char *found;
// cout << "ngramcache::get() ";
//for (int i=0;i<ngsize;i++) cout << ngp[i] << " "; cout <<"\n";
accesses++;
- if (found=ht->search((char *)ngp,HT_FIND)){
+ if ((found=ht->search((char *)ngp,HT_FIND))){
if (info) memcpy(info,found+ngsize*sizeof(int),infosize);
hits++;
};