From 86ac1b534fe7af40f1537eaa0a4472705335b2ca Mon Sep 17 00:00:00 2001 From: David Hampton Date: Fri, 20 Dec 2002 04:15:00 +0000 Subject: [PATCH] Large accounts are overflowing the data types used in the register code and are causing crashes. #92072, #98802 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7697 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/register/register-core/register-common.h | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86fa49ac0e..c5dedfecf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-12-19 David Hampton + + * src/register/register-core/register-common.h: Large accounts are + overflowing the data types used in the register code and are + causing crashes. #92072, #98802 + 2002-12-16 Christian Stimming * src/import-export/hbci/glade/hbci.glade: Set max size of diff --git a/src/register/register-core/register-common.h b/src/register/register-core/register-common.h index 69e7773696..713a9aba2d 100644 --- a/src/register/register-core/register-common.h +++ b/src/register/register-core/register-common.h @@ -51,8 +51,8 @@ BasicCell * gnc_register_make_cell (const char *cell_type_name); */ typedef struct _VirtualCellLocation VirtualCellLocation; struct _VirtualCellLocation { - short virt_row; - short virt_col; + int virt_row; + int virt_col; }; @@ -74,8 +74,8 @@ gboolean virt_cell_loc_equal (VirtualCellLocation vcl1, typedef struct _VirtualLocation VirtualLocation; struct _VirtualLocation { VirtualCellLocation vcell_loc; - short phys_row_offset; - short phys_col_offset; + int phys_row_offset; + int phys_col_offset; };