summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-10-28 11:37:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-10-28 11:37:13 -0700
commite6980c335494a8ad19014f0af6ea09e149c572d1 (patch)
treee471962536d8b3dbc916caf179eee9b2a745d14d /hash.c
parenta7de43381c398e58f2419b3547b683aadc20581d (diff)
downloadtxr-e6980c335494a8ad19014f0af6ea09e149c572d1.tar.gz
txr-e6980c335494a8ad19014f0af6ea09e149c572d1.tar.bz2
txr-e6980c335494a8ad19014f0af6ea09e149c572d1.zip
hash: gnu C++ signed/unsigned warning.
* hash.c (hash_double): Fix comparison warning between signed loop variable and unsigned limit expression.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index e5f00ecf..5413f65a 100644
--- a/hash.c
+++ b/hash.c
@@ -186,7 +186,7 @@ static ucnum hash_double(double n)
volatile ucnum a[sizeof (double) / sizeof (ucnum)];
} u;
ucnum h = 0;
- int i;
+ unsigned i;
u.d = n;