summaryrefslogtreecommitdiffstats
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
commitc8e46ecf58a595b9bcb61708c4e17be5ec030292 (patch)
treee471962536d8b3dbc916caf179eee9b2a745d14d
parentc9a5155e57933a053ac4bdf54e436fa852818f54 (diff)
downloadtxr-c8e46ecf58a595b9bcb61708c4e17be5ec030292.tar.gz
txr-c8e46ecf58a595b9bcb61708c4e17be5ec030292.tar.bz2
txr-c8e46ecf58a595b9bcb61708c4e17be5ec030292.zip
hash: gnu C++ signed/unsigned warning.
* hash.c (hash_double): Fix comparison warning between signed loop variable and unsigned limit expression.
-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;