mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
Remove Gen_MaxValid macro
Not really necessary, checking against Gen_Last is just as understandable and removes a macro.
This commit is contained in:
parent
359af770a3
commit
84704ea440
1 changed files with 1 additions and 2 deletions
|
@ -177,7 +177,6 @@ typedef enum
|
||||||
Gen_Last /* Sentinel value, not a valid generator */
|
Gen_Last /* Sentinel value, not a valid generator */
|
||||||
} Gen_Type;
|
} Gen_Type;
|
||||||
|
|
||||||
#define Gen_MaxValid Gen_Last - 1 /* maximum valid generator */
|
|
||||||
#define Gen_Count Gen_Last /* count of generators */
|
#define Gen_Count Gen_Last /* count of generators */
|
||||||
#define GenArrSize sizeof(SFGenAmount) * Gen_Count /* gen array size */
|
#define GenArrSize sizeof(SFGenAmount) * Gen_Count /* gen array size */
|
||||||
|
|
||||||
|
@ -2376,7 +2375,7 @@ static int valid_inst_genid(unsigned short genid)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if(genid > Gen_MaxValid)
|
if(genid >= Gen_Last)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue