From 1dca31ba51b8d76ce950f81d5108f94dbf624c47 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 8 Nov 2005 17:02:13 +0000 Subject: 2005-11-08 Frank Ch. Eigler Patch from "Mao, Bibo" * translate.cxx (mapvar::exists): Correct 64-bit type mismatch. --- ChangeLog | 5 +++++ HACKING | 3 ++- translate.cxx | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0539598e..c2274e0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-08 Frank Ch. Eigler + + Patch from "Mao, Bibo" + * translate.cxx (mapvar::exists): Correct 64-bit type mismatch. + 2005-11-08 Frank Ch. Eigler * tapsets.cxx (blacklisted_p): Add blacklist for some .return diff --git a/HACKING b/HACKING index 116d6117..2be2fc0f 100644 --- a/HACKING +++ b/HACKING @@ -39,7 +39,8 @@ the mailing list. - test suites As far as practicable, changes should be accompanied by test cases - to prevent future regressions. + to prevent future regressions. Tests should be run on at least + x86, and ideally also on some 64-bit platform. Tests that don't require probe execution should go into new or modified files under /src/testsuite/, a simple automake-flavoured diff --git a/translate.cxx b/translate.cxx index 0c1ce84f..d3e9a492 100644 --- a/translate.cxx +++ b/translate.cxx @@ -471,7 +471,7 @@ struct mapvar string exists (vector const & indices) const { - return "(((int)" + call_prefix("get", indices) + ")) != 0)"; + return "(((int64_t)" + call_prefix("get", indices) + ")) != 0)"; } string get (vector const & indices) const -- cgit