diff options
| author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-06 13:22:48 +0000 |
|---|---|---|
| committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-06 13:22:48 +0000 |
| commit | 735a9bc40d97bd21f3f4360262274e3ec6c51dec (patch) | |
| tree | 45536273fb00f57cb1dc78c19fe561f9b3914a29 /libcpp/symtab.c | |
| parent | 20bfedf7ae6d6e875e36b0fa76fba38fd0b59087 (diff) | |
| download | ppe42-gcc-735a9bc40d97bd21f3f4360262274e3ec6c51dec.tar.gz ppe42-gcc-735a9bc40d97bd21f3f4360262274e3ec6c51dec.zip | |
2004-09-06 Serge Belyshev <belyshev@lubercy.com>
PR preprocessor/14699
* symtab.c (ht_dump_statistics): Change type of sum_of_squares
from size_t to double.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/symtab.c')
| -rw-r--r-- | libcpp/symtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpp/symtab.c b/libcpp/symtab.c index 9b2e0f18211..471765ca697 100644 --- a/libcpp/symtab.c +++ b/libcpp/symtab.c @@ -252,8 +252,8 @@ void ht_dump_statistics (hash_table *table) { size_t nelts, nids, overhead, headers; - size_t total_bytes, longest, sum_of_squares; - double exp_len, exp_len2, exp2_len; + size_t total_bytes, longest; + double sum_of_squares, exp_len, exp_len2, exp2_len; hashnode *p, *limit; #define SCALE(x) ((unsigned long) ((x) < 1024*10 \ @@ -272,7 +272,7 @@ ht_dump_statistics (hash_table *table) size_t n = HT_LEN (*p); total_bytes += n; - sum_of_squares += n * n; + sum_of_squares += (double) n * n; if (n > longest) longest = n; nids++; |

