Some minor format string fixes for gcc-3.3.3 (SuSE 9.1). Not sure why
later gccs don't complain about these.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9019 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c
index ee346f1..c759682 100644
--- a/coregrind/m_syswrap/syswrap-generic.c
+++ b/coregrind/m_syswrap/syswrap-generic.c
@@ -2029,7 +2029,7 @@
#define POST(name) DEFN_POST_TEMPLATE(generic, name)
// Combine two 32-bit values into a 64-bit value
-#define LOHI64(lo,hi) ( (lo) | ((ULong)(hi) << 32) )
+#define LOHI64(lo,hi) ( ((ULong)(lo)) | (((ULong)(hi)) << 32) )
//zz //PRE(sys_exit_group, Special)
//zz //{
diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c
index d4ca9b2..d2a4e5d 100644
--- a/coregrind/m_syswrap/syswrap-linux.c
+++ b/coregrind/m_syswrap/syswrap-linux.c
@@ -373,7 +373,7 @@
#define POST(name) DEFN_POST_TEMPLATE(linux, name)
// Combine two 32-bit values into a 64-bit value
-#define LOHI64(lo,hi) ( (lo) | ((ULong)(hi) << 32) )
+#define LOHI64(lo,hi) ( ((ULong)(lo)) | (((ULong)(hi)) << 32) )
/* ---------------------------------------------------------------------
*mount wrappers
diff --git a/helgrind/libhb_core.c b/helgrind/libhb_core.c
index 99ba296..f391c50 100644
--- a/helgrind/libhb_core.c
+++ b/helgrind/libhb_core.c
@@ -2307,7 +2307,7 @@
tl_assert(nTab > 0);
VG_(message)(Vg_DebugMsg,
"libhb: VTS GC: #%u old size %lu live %lu (%2llu%%)",
- ctr++, nTab, nLive, (100ULL * nLive) / nTab);
+ ctr++, nTab, nLive, (100ULL * (ULong)nLive) / (ULong)nTab);
}
}