summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:28:28 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:28:28 +0000
commit4e0f29cc071a23132700d53dc80ba4bc67d0a877 (patch)
tree87f77fd437c2b545ffacf41475eb0a17922159f1
parentf7de42a81ac476dfd3ba7168b06ace4f9ad6098e (diff)
Minor fixes
-rw-r--r--src/htsinthash.c6
1 files changed, 3 insertions, 3 deletions
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);