From 4e0f29cc071a23132700d53dc80ba4bc67d0a877 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Thu, 27 Jun 2013 21:28:28 +0000 Subject: Minor fixes --- src/htsinthash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/htsinthash.c b/src/htsinthash.c index 0bd0f42..afad344 100644 --- a/src/htsinthash.c +++ b/src/htsinthash.c @@ -93,7 +93,7 @@ struct struct_inthash { /** Stash items. **/ inthash_item items[STASH_SIZE]; - /** Stash size (<= stash.size). **/ + /** Stash size (<= STASH_SIZE). **/ size_t size; } stash; @@ -771,8 +771,8 @@ static size_t inthash_inc_(inthash hashtable, const char *name, size_t inc) { inthash_value* const value = inthash_read_value_(hashtable, name); if (value != NULL) { - value->intg += inc; - return value->intg; + value->uintg += inc; + return value->uintg; } else { /* create a new value */ const int ret = inthash_write(hashtable, name, inc); -- cgit v1.2.3