summaryrefslogtreecommitdiff
path: root/decoder/cfg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/cfg.cc')
-rwxr-xr-xdecoder/cfg.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc
index aa9e5f30..8fc5b10f 100755
--- a/decoder/cfg.cc
+++ b/decoder/cfg.cc
@@ -22,8 +22,8 @@ WordID BinName(CFG::BinRhs const& b,CFG::NTs const& N,CFG::NTs const& M)
int n=w; if (n>0) o << TD::Convert(n); \
else { \
int i=-n; \
- CFG::NT const&nt = i<nn?N[i]:M[i-nn]; \
- o << nt.from << i; } \
+ if (i<nn) o<<N[i].from<<i; else o<<M[i-nn].from; \
+ } \
} while(0)
BinNameOWORD(b.first);