From: Roy Marples Date: Sun, 15 Mar 2015 16:12:20 +0000 (+0000) Subject: Fix some more conversion errors on Linux. X-Git-Tag: v6.8.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6c501e7a8c01a0a00a8bc1d4038e1fa9e05364f;p=thirdparty%2Fdhcpcd.git Fix some more conversion errors on Linux. --- diff --git a/compat/arc4random.c b/compat/arc4random.c index 963dd1f7..8fa07e8f 100644 --- a/compat/arc4random.c +++ b/compat/arc4random.c @@ -88,13 +88,13 @@ arc4_getbyte(struct arc4_stream *as) static uint32_t arc4_getword(struct arc4_stream *as) { - uint32_t val; + int val; val = arc4_getbyte(as) << 24; val |= arc4_getbyte(as) << 16; val |= arc4_getbyte(as) << 8; val |= arc4_getbyte(as); - return val; + return (uint32_t)val; } static void