gnucash maint: Bug 795362 - Special variable "i" not parsed in function calls
John Ralls
jralls at code.gnucash.org
Fri Jun 8 19:44:40 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/6f0a3c43 (commit)
from https://github.com/Gnucash/gnucash/commit/dc713592 (commit)
commit 6f0a3c4345161e3ae005afb6bf4c7c49486587a6
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Jun 8 16:23:43 2018 -0700
Bug 795362 - Special variable "i" not parsed in function calls
Limit the range of the random value to 1..1000 to prevent overflows,
particularly in number-of-periods or number-of-years variables.
While we're at it, g_random_int and g_random_int_range return ints so
piping the result through gnc_double_to_numeric() doesn't make much
sense. That's removed, we just construct a gnc_numeric.
Summary of changes:
libgnucash/app-utils/gnc-sx-instance-model.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
More information about the gnucash-patches
mailing list