mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 05:03:25 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
6a210e573d
commit
ca16f438ac
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue