Skip to content

Commit 3f17429

Browse files
authored
[compiler-rt] Fix a compile warning caused by implicit cast (llvm#2006)
1 parent dd9f7b1 commit 3f17429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/asan/asan_errors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,14 +779,14 @@ static uptr ScanForMagicUp(uptr start, uptr hi, uptr magic0, uptr magic1) {
779779

780780
void ErrorNonSelfAMDGPU::PrintMallocStack() {
781781
// Facts about asan malloc on device
782-
const uptr magic = 0xfedcba1ee1abcdefULL;
782+
const uptr magic = static_cast<uptr>(0xfedcba1ee1abcdefULL);
783783
const uptr offset = 32;
784784
const uptr min_chunk_size = 96;
785785
const uptr min_alloc_size = 48;
786786

787787
Decorator d;
788788
HeapAddressDescription addr_description;
789-
789+
790790
if (GetHeapAddressInformation(device_address[0], access_size,
791791
&addr_description) &&
792792
addr_description.chunk_access.chunk_size >= min_chunk_size) {

0 commit comments

Comments
 (0)