Skip to content

Commit

Permalink
Reduce the gate on get_random_gnc_numeric.
Browse files Browse the repository at this point in the history
Fixing Bug 779217 increased the maximum denominator by 10, and that led
to overflows when converting large numbers' denominators from 100 to the
new max.
  • Loading branch information
jralls committed Mar 26, 2017
1 parent a4ea791 commit 3109fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/test-core/test-engine-stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ get_random_gnc_numeric(void)
* The loop is to "make sure" we get there. We might
* want to make this dependent on "deno" in the future.
*/
numer = get_random_gint64 () % (2ULL << 44);
numer = get_random_gint64 () % (2ULL << 40);
if (0 == numer) numer = 1;
/* Make sure we have a non-zero denominator */
if (0 == deno) deno = 1;
Expand Down

0 comments on commit 3109fc5

Please sign in to comment.