From: Florian Krohm Date: Wed, 5 Aug 2015 13:25:58 +0000 (+0000) Subject: Add a comment. X-Git-Tag: svn/VALGRIND_3_11_0~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=038bb9a321d07fc686cf25d30861fdf15787273e;p=thirdparty%2Fvalgrind.git Add a comment. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15493 --- 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);