summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2005-11-08 17:12:13 +0000
committerfche <fche>2005-11-08 17:12:13 +0000
commit28776e58055246efc0083d05648eaf2e97b04644 (patch)
tree18ae6230fa993bcbe394dbddd4e2d5aae40a72a9
parent1dca31ba51b8d76ce950f81d5108f94dbf624c47 (diff)
downloadsystemtap-steved-28776e58055246efc0083d05648eaf2e97b04644.tar.gz
systemtap-steved-28776e58055246efc0083d05648eaf2e97b04644.tar.xz
systemtap-steved-28776e58055246efc0083d05648eaf2e97b04644.zip
2005-11-08 Frank Ch. Eigler <fche@redhat.com>
* translate.cxx (mapvar::exists): Correct some more.
-rw-r--r--ChangeLog4
-rw-r--r--translate.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c2274e0c..a9b4bc54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-11-08 Frank Ch. Eigler <fche@redhat.com>
+ * translate.cxx (mapvar::exists): Correct some more.
+
+2005-11-08 Frank Ch. Eigler <fche@redhat.com>
+
Patch from "Mao, Bibo" <bibo.mao@intel.com>
* translate.cxx (mapvar::exists): Correct 64-bit type mismatch.
diff --git a/translate.cxx b/translate.cxx
index d3e9a492..95a37438 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -471,7 +471,7 @@ struct mapvar
string exists (vector<tmpvar> const & indices) const
{
- return "(((int64_t)" + call_prefix("get", indices) + ")) != 0)";
+ return "((uintptr_t)" + call_prefix("get", indices) + ") != (uintptr_t) 0)";
}
string get (vector<tmpvar> const & indices) const