# HG changeset patch # User Aziz K?ksal # Date 1198190010 -3600 # Node ID d6212e3b9f3649ba8e547dfc59e1e8677771ed31 # Parent 164b4ecd979368d1631987cfac00fcb841c50430 Fixed code in cmd.Statistics. diff -r 164b4ecd9793 -r d6212e3b9f36 trunk/src/cmd/Statistics.d --- a/trunk/src/cmd/Statistics.d Thu Dec 20 23:29:51 2007 +0100 +++ b/trunk/src/cmd/Statistics.d Thu Dec 20 23:33:30 2007 +0100 @@ -128,7 +128,7 @@ if (printTokensTable) { stats.tokensTable[TOK.HEAD] = 1; - stats.tokensTable[TOK.Newline & ~TOK.Whitespace] = 1; + stats.tokensTable[TOK.Newline] = 1; } // Traverse linked list. while (1) @@ -136,12 +136,7 @@ stats.tokenCount += 1; if (printTokensTable) - { - if (token.isWhitespace) - stats.tokensTable[token.type & ~TOK.Whitespace] += 1; - else - stats.tokensTable[token.type] += 1; - } + stats.tokensTable[token.type] += 1; // Count whitespace characters if (token.ws !is null)