aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-08-29 16:37:29 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-08-29 16:37:29 +0000
commitb22732365ca26fbccacc4bdd32e875342f571e94 (patch)
treee093f063866806b9acf0700ffe5036cdfb71f5d7
parent9906149972906e340f512a60f72a8676748f24d8 (diff)
Fix type mismatch in initialization (caught by -Wliteral-conversion)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138736 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 0fec79848c..a39d029b9b 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -419,7 +419,7 @@ void PrintDiagnostics(CXTranslationUnit TU) {
}
void PrintMemoryUsage(CXTranslationUnit TU) {
- unsigned long total = 0.0;
+ unsigned long total = 0;
unsigned i = 0;
CXTUResourceUsage usage = clang_getCXTUResourceUsage(TU);
fprintf(stderr, "Memory usage:\n");