From b8e68db45bc75e202dc1d7568bc8cd448ad6e058 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 7 Nov 2024 13:27:41 +0000 Subject: [PATCH] grand: Fix return type for fread() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a `-Wshorten-64-to-32` warning, but there’s no underlying bug here, as the maximum requested read size is 4 bytes anyway. Signed-off-by: Philip Withnall Helps: #3527 --- glib/grand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/grand.c b/glib/grand.c index 302b74b77..2ac4a4ec6 100644 --- a/glib/grand.c +++ b/glib/grand.c @@ -185,7 +185,7 @@ g_rand_new (void) if (dev_urandom) { - int r; + size_t r; setvbuf (dev_urandom, NULL, _IONBF, 0); do