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:
Dave Peticolas 2001-07-03 19:53:45 +00:00
parent 325c1d0323
commit 27a9e07b36
2 changed files with 4 additions and 2 deletions

View File

@ -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'

View File

@ -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++; \