summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:25:29 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-27 21:25:29 +0000
commitf7de42a81ac476dfd3ba7168b06ace4f9ad6098e (patch)
treeb12c2d977f9f50505acf5749275d4f40c22c0d7a
parentf281133bfee9083afb8248d642927ffd30e2183e (diff)
Hash value can be signed or unsigned
-rw-r--r--src/htsinthash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/htsinthash.h b/src/htsinthash.h
index 90f8401..636b4b3 100644
--- a/src/htsinthash.h
+++ b/src/htsinthash.h
@@ -71,7 +71,10 @@ typedef unsigned __int64 uint64_t;
/** Value. **/
typedef union inthash_value {
/** Integer value. **/
- uintptr_t intg;
+ intptr_t intg;
+
+ /** Unsigned integer value. **/
+ uintptr_t uintg;
/** Pointer value. **/
void *ptr;