summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01d96bf)
raw | patch | inline | side by side (parent: 01d96bf)
author | Jan "yenda" Trmal <jtrmal@gmail.com> | |
Wed, 1 Feb 2017 18:22:07 +0000 (13:22 -0500) | ||
committer | Daniel Povey <dpovey@gmail.com> | |
Wed, 1 Feb 2017 18:22:07 +0000 (13:22 -0500) |
tools/extras/openfst-1.3.4.patch | patch | blob | history |
index bae0d6d711450d2bb35211fdfb3aa37f25fa9ce2..41ce6d59221eeac1a678b8f5a78a5d6a3bde7e12 100644 (file)
if (strm != &cout)
delete strm;
return ret;
+
+--- a/src/include/fst/extensions/ngram/ngram-fst.h
++++ b/src/include/fst/extensions/ngram/ngram-fst.h
+@@ -130,7 +130,7 @@
+ hdr.SetNumStates(num_states_);
+ WriteHeader(strm, opts, kFileVersion, &hdr);
+ strm.write(data_, Storage(num_states_, num_futures_, num_final_));
++ return !strm.fail();
+- return strm;
+ }
+
+ StateId Start() const {