mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Merge branch 'fix_warnings' into 'master'
Fix various signedness warnings See merge request GNOME/glib!1645
This commit is contained in:
commit
9bc61def1f
@ -2244,7 +2244,7 @@ script_execute (const gchar *file,
|
||||
gchar **envp)
|
||||
{
|
||||
/* Count the arguments. */
|
||||
int argc = 0;
|
||||
gsize argc = 0;
|
||||
while (argv[argc])
|
||||
++argc;
|
||||
|
||||
|
@ -995,7 +995,7 @@ g_get_host_name (void)
|
||||
|
||||
#ifdef _SC_HOST_NAME_MAX
|
||||
max = sysconf (_SC_HOST_NAME_MAX);
|
||||
if (max > 0 && max <= G_MAXSIZE - 1)
|
||||
if (max > 0 && (gsize) max <= G_MAXSIZE - 1)
|
||||
size = (gsize) max + 1;
|
||||
else
|
||||
#ifdef HOST_NAME_MAX
|
||||
|
@ -271,7 +271,7 @@ int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
gchar *path;
|
||||
gint i;
|
||||
guint i;
|
||||
const gchar *locale;
|
||||
CollateTest test[3];
|
||||
|
||||
|
@ -737,7 +737,7 @@ int
|
||||
main (int argc, char** argv)
|
||||
{
|
||||
gchar *path;
|
||||
gint i;
|
||||
gsize i;
|
||||
|
||||
/* Try to get all the leap year cases. */
|
||||
int check_years[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user