mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-07 14:36:53 +02:00
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:
parent
49d8185d03
commit
b8e68db45b
@ -185,7 +185,7 @@ g_rand_new (void)
|
||||
|
||||
if (dev_urandom)
|
||||
{
|
||||
int r;
|
||||
size_t r;
|
||||
|
||||
setvbuf (dev_urandom, NULL, _IONBF, 0);
|
||||
do
|
||||
|
Loading…
x
Reference in New Issue
Block a user