mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-07-03 Dave Peticolas <dave@krondo.com>
* src/engine/sql/putil.h: Alex Zepeda's patch converting atol->strtoll. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4858 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
325c1d0323
commit
27a9e07b36
@ -1,5 +1,7 @@
|
||||
2001-07-03 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/engine/sql/putil.h: Alex Zepeda's patch converting atol->strtoll.
|
||||
|
||||
* src/scm/commodity-utilities.scm: fix bug -- use srfi-1 to
|
||||
make sure we get the right 'last'
|
||||
|
||||
|
@ -282,7 +282,7 @@ gnc_commodity * gnc_string_to_commodity (const char *str);
|
||||
|
||||
/* Compare long-long integers */
|
||||
#define COMP_INT64(sqlname,fun,ndiffs) { \
|
||||
if (atoll (DB_GET_VAL(sqlname,0)) != fun) { \
|
||||
if (strtoll (DB_GET_VAL(sqlname,0), NULL, 0) != fun) { \
|
||||
PINFO("mis-match: %s sql='%s', eng='%lld'", sqlname, \
|
||||
DB_GET_VAL (sqlname,0), fun); \
|
||||
ndiffs++; \
|
||||
@ -291,7 +291,7 @@ gnc_commodity * gnc_string_to_commodity (const char *str);
|
||||
|
||||
/* compare 32-bit ints */
|
||||
#define COMP_INT32(sqlname,fun,ndiffs) { \
|
||||
if (atol (DB_GET_VAL(sqlname,0)) != fun) { \
|
||||
if (strtoll (DB_GET_VAL(sqlname,0), NULL, 0) != fun) { \
|
||||
PINFO("mis-match: %s sql='%s', eng='%d'", sqlname, \
|
||||
DB_GET_VAL (sqlname,0), fun); \
|
||||
ndiffs++; \
|
||||
|
Loading…
Reference in New Issue
Block a user