gnucash maint: [gnc_scm_to_numeric] create NaN gnc_numeric instead of runtime error

Christopher Lam clam at code.gnucash.org
Mon Nov 23 08:51:57 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/a1c517b4 (commit)
	from  https://github.com/Gnucash/gnucash/commit/8f329921 (commit)



commit a1c517b4ba107818ed289833ba9f1318cc01ed4d
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Nov 23 21:33:35 2020 +0800

    [gnc_scm_to_numeric] create NaN gnc_numeric instead of runtime error
    
    If guile calls a C function which expects gnc_numeric but sends a
    non-number, it will create a gnc_numeric_error object. This will allow
    error gnc_numeric to be handled elsewhere.
    
    Also the overflow gnc_numeric was incorrectly created.



Summary of changes:
 bindings/guile/gnc-engine-guile.c | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)



More information about the gnucash-patches mailing list