From 038bb9a321d07fc686cf25d30861fdf15787273e Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Wed, 5 Aug 2015 13:25:58 +0000 Subject: [PATCH] Add a comment. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15493 --- coregrind/m_xarray.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coregrind/m_xarray.c b/coregrind/m_xarray.c index 726dd55470..3922e52765 100644 --- a/coregrind/m_xarray.c +++ b/coregrind/m_xarray.c @@ -278,6 +278,9 @@ Bool VG_(lookupXA) ( const XArray* xa, const void* key, return VG_(lookupXA_UNSAFE)(xa, key, first, last, xa->cmpFn); } +/* FIXME: This function should return an unsigned value because the number + of elements cannot be negative. Unfortunately, making the change causes + a lot of ripple. */ Word VG_(sizeXA) ( const XArray* xa ) { vg_assert(xa); -- 2.47.3