Prechádzať zdrojové kódy

Fix an issue mentioned in #366

Summary: Closes https://github.com/facebookresearch/fastText/pull/447

Differential Revision: D7111569

Pulled By: EdouardGrave

fbshipit-source-id: 61edc1960ce183901f7bb75adfccc13056e8b546
Peter Zhang 8 rokov pred
rodič
commit
a007b8fc0d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/dictionary.cc

+ 1 - 1
src/dictionary.cc

@@ -200,7 +200,7 @@ void Dictionary::initNgrams() {
 
 bool Dictionary::readWord(std::istream& in, std::string& word) const
 {
-  char c;
+  int c;
   std::streambuf& sb = *in.rdbuf();
   word.clear();
   while ((c = sb.sbumpc()) != EOF) {