From 1c0b252dfa0169eef0a4bdb7442d433b2bf8c1c7 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 29 Apr 2012 17:19:18 +0200 Subject: reverted changes in upstream --- utils/dict.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/dict.h') 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]; } -- cgit v1.2.3