summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRainer Schuetze <r.sagitario@gmx.de>2018-03-30 07:58:09 (GMT)
committerRainer Schuetze <r.sagitario@gmx.de>2018-03-30 07:58:09 (GMT)
commitab4b0b1946295f9762ec3ed83a7c84cc8b7aa975 (patch)
treeb14606180129916243e96ed66116e7677c07aae1 /src
parent74615ceab4ac7577a8fdf1d2f93df7973ae1ff21 (diff)
downloadcv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.zip
cv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.tar.gz
cv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.tar.bz2
fix signed/unsigned warnings
Diffstat (limited to 'src')
-rw-r--r--src/dwarf2pdb.cpp7
-rw-r--r--src/readDwarf.h6
2 files changed, 6 insertions, 7 deletions
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp
index cb078e3..58cd936 100644
--- a/src/dwarf2pdb.cpp
+++ b/src/dwarf2pdb.cpp
@@ -781,15 +781,14 @@ bool CV2PDB::addDWARFProc(DWARF_InfoData& procid, DWARF_CompilationUnit* cu, DIE
// non-contiguous address ranges in CodeView. Instead,
// just create a range that is large enough to cover
// all continuous ranges.
- if (id.hasChild && id.ranges != -1u)
+ if (id.hasChild && id.ranges != ~0)
{
- id.pclo = -1u;
+ id.pclo = ~0;
id.pchi = 0;
// TODO: handle base address selection
byte *r = (byte *)img.debug_ranges + id.ranges;
byte *rend = (byte *)img.debug_ranges + img.debug_ranges_length;
- bool is_= img.isX64() ? 8 : 4;
while (r < rend)
{
uint64_t pclo, pchi;
@@ -1711,4 +1710,4 @@ byte *CFIIndex::lookup(unsigned int pclo, unsigned int pchi) const
return e.ptr;
else
return NULL;
-} \ No newline at end of file
+}
diff --git a/src/readDwarf.h b/src/readDwarf.h
index 5fba790..a259e3c 100644
--- a/src/readDwarf.h
+++ b/src/readDwarf.h
@@ -184,7 +184,7 @@ struct DWARF_InfoData
encoding = 0;
pclo = 0;
pchi = 0;
- ranges = -1u;
+ ranges = ~0;
type = 0;
containing_type = 0;
specification = 0;
@@ -211,7 +211,7 @@ struct DWARF_InfoData
if (id.encoding) encoding = id.encoding;
if (id.pclo) pclo = id.pclo;
if (id.pchi) pchi = id.pchi;
- if (id.ranges != -1u) ranges = id.ranges;
+ if (id.ranges != ~0) ranges = id.ranges;
if (id.type) type = id.type;
if (id.containing_type) containing_type = id.containing_type;
if (id.specification) specification = id.specification;
@@ -238,7 +238,7 @@ struct DWARF_LineNumberProgramHeader
signed char line_base;
byte line_range;
byte opcode_base;
- //LEB128 standard_opcode_lengths[opcode_base];
+ //LEB128 standard_opcode_lengths[opcode_base];
// string include_directories[] // zero byte terminated
// DWARF_FileNames file_names[] // zero byte terminated
};