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