Skip to content

Commit

Permalink
Use the correct #define for the number of account types instead
Browse files Browse the repository at this point in the history
of assuming that ACCT_TYPE_CREDITLINE is the last one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21239 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
mtalexander committed Sep 6, 2011
1 parent 898f077 commit 5f980c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/test-core/test-engine-stuff.c
Expand Up @@ -1246,7 +1246,7 @@ make_random_changes_to_account (QofBook *book, Account *account)

set_account_random_string (account, xaccAccountSetName);

tmp_int = get_random_int_in_range (ACCT_TYPE_BANK, ACCT_TYPE_CREDITLINE);
tmp_int = get_random_int_in_range (ACCT_TYPE_BANK, NUM_ACCOUNT_TYPES - 1);
xaccAccountSetType (account, tmp_int);

set_account_random_string (account, xaccAccountSetCode);
Expand Down

0 comments on commit 5f980c8

Please sign in to comment.