nixpkgs/pkgs/by-name/ro/rofi-file-browser/fix_build_on_i686.patch
Benoit de Chezelles baa7d4d6f0 rofi-file-browser: Fix build error & warnings
- Fix a hard build error due to incompatible pointer type
- Fix build on i686 where `gsize` is not a `unsigned long`
- Fix glib-related warning about deprecated functions
2025-02-05 07:40:45 +01:00

14 lines
405 B
Diff

diff --git a/src/icons.c b/src/icons.c
index eee00a4..ae476de 100644
--- a/src/icons.c
+++ b/src/icons.c
@@ -48,7 +48,7 @@ void request_icons_for_file ( FBFile *fbfile, int icon_size, FileBrowserIconData
}
}
- unsigned long num_icon_names;
+ gsize num_icon_names;
char** icon_names_raw = g_array_steal ( icon_names, &num_icon_names );
/* Create icon fetcher requests. */