summaryrefslogtreecommitdiffstats
path: root/test/table_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/table_test.cpp')
-rw-r--r--test/table_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/table_test.cpp b/test/table_test.cpp
index 882873a..41d13c2 100644
--- a/test/table_test.cpp
+++ b/test/table_test.cpp
@@ -186,7 +186,7 @@ main(int argc, char** argv)
t.insert(make_pair(val, ((val + 3) * 17)));
}
- for (int i=0; i < (int)table_size; ++i) {
+ for (size_t i=0; i < table_size; ++i) {
int val = rand()%100;
Table<int, int>::iterator iter = t.find(val);
assert(iter == t.end() || iter->second == (val + 3) * 17);
@@ -281,7 +281,7 @@ benchmark(size_t n)
gettimeofday(&t1, NULL);
for (size_t i=0; i < n; ++i)
- useless_accumulator += (int)(*s.find(values[i]))[0];
+ useless_accumulator += static_cast<int>((*s.find(values[i]))[0]);
gettimeofday(&t2, NULL);