Skip to content

Commit e28558f

Browse files
author
Zachary Turner
committedMar 17, 2017
Fix some signed/unsigned comparison warnings.
Patch by Hugh Bellamy Differential Revision: https://reviews.llvm.org/D30926 llvm-svn: 298099
1 parent a0f96be commit e28558f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎lldb/source/Core/FormatEntity.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ enum FileKind { FileError = 0, Basename, Dirname, Fullpath };
6464
#define ENTRY_CHILDREN(n, t, f, c) \
6565
{ \
6666
n, nullptr, FormatEntity::Entry::Type::t, \
67-
FormatEntity::Entry::FormatType::f, 0, llvm::array_lengthof(c), c, \
68-
false \
67+
FormatEntity::Entry::FormatType::f, 0, \
68+
static_cast<uint32_t>(llvm::array_lengthof(c)), c, false \
6969
}
7070
#define ENTRY_CHILDREN_KEEP_SEP(n, t, f, c) \
7171
{ \
7272
n, nullptr, FormatEntity::Entry::Type::t, \
73-
FormatEntity::Entry::FormatType::f, 0, llvm::array_lengthof(c), c, \
74-
true \
73+
FormatEntity::Entry::FormatType::f, 0, \
74+
static_cast<uint32_t>(llvm::array_lengthof(c)), c, true \
7575
}
7676
#define ENTRY_STRING(n, s) \
7777
{ \

0 commit comments

Comments
 (0)