From d1fb5ad91e2429739b5a746fa36ab0ee822e33b7 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Sun, 4 Nov 2007 19:06:45 -0500 Subject: TraceFlags: Fix off-by-one error with number of traceflags. --HG-- extra : convert_revision : 668299fc0a9083be858fe2f6e8fde512ddac9e32 --- src/python/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python/generate.py') 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 # -- cgit v1.2.3