From ca16f438ac74ae1c35824353d710e47aea6893c5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 29 Aug 2012 15:43:00 -0700 Subject: Store time_t as long value The tree_storage only provided enough space for an int for DIVE_DATE. But at least on 64bit Linux, an int is 32bit yet a time_t is 64bit. Until 2038 this only causes issues in some odd situations, after 2038 this would be an obvious bug. Signed-off-by: Dirk Hohndel --- divelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/divelist.c b/divelist.c index 1e1d1c921..4ac50444f 100644 --- a/divelist.c +++ b/divelist.c @@ -1293,7 +1293,7 @@ GtkWidget *dive_list_create(void) dive_list.listmodel = gtk_tree_store_new(DIVELIST_COLUMNS, G_TYPE_INT, /* index */ G_TYPE_INT, /* nr */ - G_TYPE_INT, /* Date */ + G_TYPE_LONG, /* Date */ G_TYPE_INT, /* Star rating */ G_TYPE_INT, /* Depth */ G_TYPE_INT, /* Duration */ @@ -1309,7 +1309,7 @@ GtkWidget *dive_list_create(void) dive_list.treemodel = gtk_tree_store_new(DIVELIST_COLUMNS, G_TYPE_INT, /* index */ G_TYPE_INT, /* nr */ - G_TYPE_INT, /* Date */ + G_TYPE_LONG, /* Date */ G_TYPE_INT, /* Star rating */ G_TYPE_INT, /* Depth */ G_TYPE_INT, /* Duration */ -- cgit v1.2.3-70-g09d2