mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-30 19:06:38 +02:00
Merge branch 'strtoll' into 'main'
gstrfuncs: Always treat G_MININT64 in g_ascii_strtoll See merge request GNOME/glib!4730
This commit is contained in:
@@ -1250,7 +1250,7 @@ g_ascii_strtoll (const gchar *nptr,
|
|||||||
return G_MAXINT64;
|
return G_MAXINT64;
|
||||||
}
|
}
|
||||||
else if (negative)
|
else if (negative)
|
||||||
return - (gint64) result;
|
return (result == (guint64) G_MININT64) ? G_MININT64 : -(gint64) result;
|
||||||
else
|
else
|
||||||
return (gint64) result;
|
return (gint64) result;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user