diff options
author | Nathan Binkert <nate@binkert.org> | 2008-10-09 04:58:23 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-10-09 04:58:23 -0700 |
commit | 7cc2a88038ccfd828a0caa7aa9d1b758d096d37d (patch) | |
tree | 9f58474948f0d6dac4abb2e48cff075cdf6caa42 /src/base/stats/mysql.hh | |
parent | a52dce6d623f6cb289004d4af12be0769966dadf (diff) | |
download | gem5-7cc2a88038ccfd828a0caa7aa9d1b758d096d37d.tar.xz |
stats: use properly signed types for looping and comparison
Diffstat (limited to 'src/base/stats/mysql.hh')
-rw-r--r-- | src/base/stats/mysql.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/stats/mysql.hh b/src/base/stats/mysql.hh index 5caac69de..6e47719ce 100644 --- a/src/base/stats/mysql.hh +++ b/src/base/stats/mysql.hh @@ -69,9 +69,9 @@ class InsertData { private: char *query; - int size; + size_type size; bool first; - static const int maxsize = 1024*1024; + static const size_type maxsize = 1024*1024; public: MySqlRun *run; @@ -95,9 +95,9 @@ class InsertEvent { private: char *query; - int size; + size_type size; bool first; - static const int maxsize = 1024*1024; + static const size_type maxsize = 1024*1024; typedef std::map<std::string, uint32_t> event_map_t; event_map_t events; |