summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--tapsets.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d96c848a..d6226d2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-11 Wenji Huang <wenji.huang@oracle.com>
+
+ * tapsets.cxx : Fixed compilation warning on gcc 3.x.
+
2008-08-11 Frank Ch. Eigler <fche@elastic.org>
* tapsets.cxx (translate_final_fetch_or_store): Reject some
diff --git a/tapsets.cxx b/tapsets.cxx
index b35bc338..6dcd2c00 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2067,7 +2067,7 @@ struct dwflpp
diestr = (dname != NULL) ? dname : "<unknown>";
Dwarf_Attribute encoding_attr;
- Dwarf_Word encoding = -1;
+ Dwarf_Word encoding = (Dwarf_Word) -1;
dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding, &encoding_attr),
& encoding);
if (encoding < 0)