* src/engine/gnc-numeric.c: Rich Johnson's patch to convert

atoll() -> strtoll()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9720 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-12-08 23:26:26 +00:00
parent d8f2d79218
commit 1645a7a9b6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-12-08 Derek Atkins <derek@ihtfp.com>
* src/engine/gnc-numeric.c: Rich Johnson's patch to convert
atoll() -> strtoll()
2003-12-08 Benoit Grégoire <bock@step.polymtl.ca>
*src/import-export/log-replay/gnc-log-replay.c: Increase read buffer size.
Hopefully fixes 127421, but this time someone please do test the fix...

View File

@ -1127,11 +1127,11 @@ string_to_gnc_numeric(const gchar* str, gnc_numeric *n) {
return(NULL);
}
#else
tmpnum = atoll (str);
tmpnum = strtoll (str, NULL, 0);
str = strchr (str, '/');
if (!str) return NULL;
str ++;
tmpdenom = atoll (str);
tmpdenom = strtoll (str, NULL, 0);
num_read = strspn (str, "0123456789");
#endif
n->num = tmpnum;