mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 13:53:06 +02:00
Whitespace fixes
This commit is contained in:
parent
43098d0038
commit
2aa135ee3d
@ -283,8 +283,8 @@ get_weekday_name_abbr (gint day)
|
|||||||
|
|
||||||
static inline gint
|
static inline gint
|
||||||
date_to_proleptic_gregorian (gint year,
|
date_to_proleptic_gregorian (gint year,
|
||||||
gint month,
|
gint month,
|
||||||
gint day)
|
gint day)
|
||||||
{
|
{
|
||||||
gint64 days;
|
gint64 days;
|
||||||
|
|
||||||
@ -584,7 +584,7 @@ g_time_zone_new_from_epoch (const gchar *tz_name,
|
|||||||
#define SECS_PER_JULIAN (DAYS_PER_PERIOD * SECS_PER_DAY)
|
#define SECS_PER_JULIAN (DAYS_PER_PERIOD * SECS_PER_DAY)
|
||||||
|
|
||||||
static gint64
|
static gint64
|
||||||
g_date_time_secs_offset (const GDateTime * dt)
|
g_date_time_secs_offset (const GDateTime *dt)
|
||||||
{
|
{
|
||||||
gint64 secs;
|
gint64 secs;
|
||||||
gint d, y, h, m, s;
|
gint d, y, h, m, s;
|
||||||
@ -1334,12 +1334,14 @@ g_date_time_get_dmy (const GDateTime *datetime,
|
|||||||
|
|
||||||
the_month = (remaining_days + 50) >> 5;
|
the_month = (remaining_days + 50) >> 5;
|
||||||
preceding = (days_in_year[0][the_month - 1] + (the_month > 2 && leap));
|
preceding = (days_in_year[0][the_month - 1] + (the_month > 2 && leap));
|
||||||
if (preceding > remaining_days) {
|
if (preceding > remaining_days)
|
||||||
/* estimate is too large */
|
{
|
||||||
the_month -= 1;
|
/* estimate is too large */
|
||||||
preceding -= leap ? days_in_months[1][the_month] :
|
the_month -= 1;
|
||||||
days_in_months[0][the_month];
|
preceding -= leap ? days_in_months[1][the_month]
|
||||||
}
|
: days_in_months[0][the_month];
|
||||||
|
}
|
||||||
|
|
||||||
remaining_days -= preceding;
|
remaining_days -= preceding;
|
||||||
g_assert(0 <= remaining_days);
|
g_assert(0 <= remaining_days);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user