summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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