From b7bc9b6cb028d8bb7dfdfe90939e3e6d90682486 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Wed, 27 Feb 2019 17:18:07 +0100 Subject: [PATCH] Cast a value in notrandombytes.c --- common/notrandombytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/notrandombytes.c b/common/notrandombytes.c index f8145026..6b2b8529 100644 --- a/common/notrandombytes.c +++ b/common/notrandombytes.c @@ -70,7 +70,7 @@ int randombytes(uint8_t *buf, size_t xlen) { surf(); outleft = 8; } - *buf = out[--outleft]; + *buf = (uint8_t) out[--outleft]; ++buf; --xlen; }