[glib] GDateTime: pack the struct better
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDateTime: pack the struct better
- Date: Fri, 17 Aug 2012 04:27:04 +0000 (UTC)
commit b0d8498ee31ab9e3a0ad4c747d1816dd6d4758f5
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 17 00:27:10 2012 -0400
GDateTime: pack the struct better
Makes a difference in 32bit.
glib/gdatetime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index 4bd0e79..d09fa08 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -115,9 +115,6 @@
struct _GDateTime
{
- /* 1 is 0001-01-01 in Proleptic Gregorian */
- gint32 days;
-
/* Microsecond timekeeping within Day */
guint64 usec;
@@ -125,6 +122,9 @@ struct _GDateTime
GTimeZone *tz;
gint interval;
+ /* 1 is 0001-01-01 in Proleptic Gregorian */
+ gint32 days;
+
volatile gint ref_count;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]