From: Ali Saidi Date: Mon, 5 Nov 2007 00:06:45 +0000 (-0500) Subject: TraceFlags: Fix off-by-one error with number of traceflags. X-Git-Tag: m5_2.0_beta4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1fb5ad91e2429739b5a746fa36ab0ee822e33b7;p=gem5.git TraceFlags: Fix off-by-one error with number of traceflags. --HG-- extra : convert_revision : 668299fc0a9083be858fe2f6e8fde512ddac9e32 --- diff --git a/src/python/generate.py b/src/python/generate.py index e52128de2..eead6ff5d 100644 --- a/src/python/generate.py +++ b/src/python/generate.py @@ -418,7 +418,7 @@ const char *Trace::flagStrings[] = print >>f, '};' print >>f - print >>f, 'const int Trace::numFlagStrings = %d;' % len(allFlags) + print >>f, 'const int Trace::numFlagStrings = %d;' % (len(allFlags) + 1) print >>f #