Skip to content

Commit a6ae223

Browse files
authored
[clang][bytecode][NFC] Avoid an implicit integer conversion (#139845)
getCharByteWidth() returns an unsigned.
1 parent 4554c85 commit a6ae223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ bool Compiler<Emitter>::VisitStringLiteral(const StringLiteral *E) {
24352435
// emitted. Read only the array length from the string literal.
24362436
unsigned ArraySize = CAT->getZExtSize();
24372437
unsigned N = std::min(ArraySize, E->getLength());
2438-
size_t CharWidth = E->getCharByteWidth();
2438+
unsigned CharWidth = E->getCharByteWidth();
24392439

24402440
for (unsigned I = 0; I != N; ++I) {
24412441
uint32_t CodeUnit = E->getCodeUnit(I);

0 commit comments

Comments
 (0)