[Lldb-commits] [lldb] r218410 - Add an explicit cast to silence compiler warning here
Enrico Granata
egranata at apple.com
Wed Sep 24 13:52:59 PDT 2014
Author: enrico
Date: Wed Sep 24 15:52:58 2014
New Revision: 218410
URL: http://llvm.org/viewvc/llvm-project?rev=218410&view=rev
Log:
Add an explicit cast to silence compiler warning here
Modified:
lldb/trunk/include/lldb/Utility/ProcessStructReader.h
Modified: lldb/trunk/include/lldb/Utility/ProcessStructReader.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ProcessStructReader.h?rev=218410&r1=218409&r2=218410&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/ProcessStructReader.h (original)
+++ lldb/trunk/include/lldb/Utility/ProcessStructReader.h Wed Sep 24 15:52:58 2014
@@ -63,7 +63,7 @@ namespace lldb_private {
// no support for things larger than a uint64_t (yet)
if (size > 8)
return;
- m_fields[ConstString(name.c_str())] = FieldImpl{field_type,bit_offset/8,size};
+ m_fields[ConstString(name.c_str())] = FieldImpl{field_type,static_cast<size_t>(bit_offset/8),static_cast<size_t>(size)};
}
size_t total_size = struct_type.GetByteSize();
lldb::DataBufferSP buffer_sp(new DataBufferHeap(total_size,0));
More information about the lldb-commits
mailing list