gcc-3.3 as supplied with SuSE 8.2 ("gcc version 3.3 20030226
(prerelease) (SuSE Linux)") seems to complain about signed-vs-unsigned
comparisons, when -Wall is on. This commit fixes (most of) those
complaints.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1638 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_from_ucode.c b/coregrind/vg_from_ucode.c
index db3d8bd..b285e1d 100644
--- a/coregrind/vg_from_ucode.c
+++ b/coregrind/vg_from_ucode.c
@@ -164,7 +164,7 @@
histogram[i].counts, count_pc,
avg_size, size_pc);
- for (j = 0; j < size_pc; j++) VG_(printf)("O");
+ for (j = 0; j < (Int)size_pc; j++) VG_(printf)("O");
VG_(printf)("\n");
} else {
@@ -1883,7 +1883,7 @@
* Searches through compacts first, then non-compacts. */
Int VG_(helper_offset)(Addr a)
{
- Int i;
+ UInt i;
Char buf[100];
for (i = 0; i < VG_(n_compact_helpers); i++)