From 09a0e806bcc79b5d193f548a880c196267730af1 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 14 Jan 2016 17:28:20 +0100 Subject: [PATCH] gcc compilation fix --- crypto | 2 +- src/util/password.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto b/crypto index 0ce0c5d6e..f9ecf5a10 160000 --- a/crypto +++ b/crypto @@ -1 +1 @@ -Subproject commit 0ce0c5d6e1963b31863216d24d2cc5594f9a8893 +Subproject commit f9ecf5a10983adfc7bd1bee8ac1f9a3abf1d41d9 diff --git a/src/util/password.c b/src/util/password.c index f11396104..6a2fdd5ad 100644 --- a/src/util/password.c +++ b/src/util/password.c @@ -34,7 +34,7 @@ char *password_gensalt(void) { int buflen = SALTLEN; while (buflen) { unsigned long ul = genrand_int32(); - b64_from_24bit(ul & 0xFF, (ul>>8)&0xff, (ul>>16)&0xFF, 4); + b64_from_24bit((char)(ul & 0xFF), (char)((ul>>8)&0xff), (char)((ul>>16)&0xFF), 4); } salt[SALTLEN] = 0; return salt;