grand: Fix return type for fread() call

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 <pwithnall@gnome.org>

Helps: #3527
This commit is contained in:
Philip Withnall 2024-11-07 13:27:41 +00:00
parent 49d8185d03
commit b8e68db45b
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -185,7 +185,7 @@ g_rand_new (void)
if (dev_urandom)
{
int r;
size_t r;
setvbuf (dev_urandom, NULL, _IONBF, 0);
do