diff options
author | fche <fche> | 2005-11-08 17:12:13 +0000 |
---|---|---|
committer | fche <fche> | 2005-11-08 17:12:13 +0000 |
commit | 28776e58055246efc0083d05648eaf2e97b04644 (patch) | |
tree | 18ae6230fa993bcbe394dbddd4e2d5aae40a72a9 | |
parent | 1dca31ba51b8d76ce950f81d5108f94dbf624c47 (diff) | |
download | systemtap-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-- | 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 |