From 591bfc8aa66d4d415be0d947e2764bcc9f5e25b7 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 5 May 2008 18:30:58 +0000 Subject: Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Debugger/Debugger.h | 4 +++- include/llvm/Debugger/SourceFile.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include/llvm/Debugger') diff --git a/include/llvm/Debugger/Debugger.h b/include/llvm/Debugger/Debugger.h index 394592f..5b0b97a 100644 --- a/include/llvm/Debugger/Debugger.h +++ b/include/llvm/Debugger/Debugger.h @@ -67,7 +67,9 @@ namespace llvm { void setProgramArguments(It I, It E) { ProgramArguments.assign(I, E); } - unsigned getNumProgramArguments() const { return ProgramArguments.size(); } + unsigned getNumProgramArguments() const { + return static_cast(ProgramArguments.size()); + } const std::string &getProgramArgument(unsigned i) const { return ProgramArguments[i]; } diff --git a/include/llvm/Debugger/SourceFile.h b/include/llvm/Debugger/SourceFile.h index 66783ce..249435a 100644 --- a/include/llvm/Debugger/SourceFile.h +++ b/include/llvm/Debugger/SourceFile.h @@ -74,7 +74,7 @@ namespace llvm { /// unsigned getNumLines() const { if (LineOffset.empty()) calculateLineOffsets(); - return LineOffset.size(); + return static_cast(LineOffset.size()); } private: -- cgit v1.1