summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2015-04-07 11:47:59 -0500
committerDan McGee <dpmcgee@gmail.com>2015-04-07 11:47:59 -0500
commit347ae48021e32cba1bac8459cb36f88626268883 (patch)
tree87cec169455e57db07e3d6b5cdf2f30095267552 /util.c
parent4bc588efc4a92dcf0e76d87bc730699270d6f178 (diff)
downloadonkyocontrol-347ae48021e32cba1bac8459cb36f88626268883.tar.gz
onkyocontrol-347ae48021e32cba1bac8459cb36f88626268883.zip
Fix up a handful of integer conversion warningsHEADmaster
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 9a7dcdb..d92efac 100644
--- a/util.c
+++ b/util.c
@@ -82,7 +82,7 @@ unsigned long hash_sdbm(const char *str)
if(!str)
return hash;
while((c = *str++))
- hash = c + hash * 65599;
+ hash = (unsigned int)c + hash * 65599;
return hash;
}