diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | translate.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 |