mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
d8f2d79218
commit
1645a7a9b6
@ -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...
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user