diff options
author | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2015-08-05 11:26:10 +0000 |
---|---|---|
committer | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2015-08-05 11:26:10 +0000 |
commit | a6a6d9247ac4b1ba7f8dc28000cfcadb8feee85b (patch) | |
tree | 47d2a2695a769352b27bb2238cec6ece524a7693 /include/pub_tool_hashtable.h | |
parent | 9b872fdb759d022bb94e6c6ef153f7f747f5ae65 (diff) | |
download | valgrind-a6a6d9247ac4b1ba7f8dc28000cfcadb8feee85b.tar.gz |
The number of elements in a hash table cannot be negative.
Let the return type of VG_(HT_count_nodes) reflect that.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15490 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_hashtable.h')
-rw-r--r-- | include/pub_tool_hashtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pub_tool_hashtable.h b/include/pub_tool_hashtable.h index 6fc6822b4..17060ecfd 100644 --- a/include/pub_tool_hashtable.h +++ b/include/pub_tool_hashtable.h @@ -58,7 +58,7 @@ typedef struct _VgHashTable VgHashTable; extern VgHashTable *VG_(HT_construct) ( const HChar* name ); /* Count the number of nodes in a table. */ -extern Int VG_(HT_count_nodes) ( const VgHashTable *table ); +extern UInt VG_(HT_count_nodes) ( const VgHashTable *table ); /* Add a node to the table. Duplicate keys are permitted. */ extern void VG_(HT_add_node) ( VgHashTable *t, void* node ); |