summaryrefslogtreecommitdiff
path: root/utils/dict.h
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-29 17:19:18 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-29 17:19:18 +0200
commiteecf255ed7aaabb9ce2decd80dd115240e468327 (patch)
tree034c9c6ed440d80abc93ed81b472114827c26631 /utils/dict.h
parent3607e00fec971d2a58a638ade53870aac0d31208 (diff)
reverted changes in upstream
Diffstat (limited to 'utils/dict.h')
-rw-r--r--utils/dict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/dict.h b/utils/dict.h
index a3400868..595e4f9f 100644
--- a/utils/dict.h
+++ b/utils/dict.h
@@ -73,7 +73,7 @@ class Dict {
inline const std::string& Convert(const WordID& id) const {
if (id == 0) return b0_;
assert(id <= (int)words_.size());
- //if (id < 0 || id > (int)words_.size()) return b0_;
+ if (id < 0 || id > (int)words_.size()) return b0_;
return words_[id-1];
}