Use integer math

Actually, using an integer division produces the same result.

Addresses #455.
This commit is contained in:
carlo-bramini 2018-11-01 11:43:03 +01:00 committed by derselbst
parent da6a2e7a91
commit a948f7c5b2

View file

@ -2225,7 +2225,7 @@ int fluid_player_get_total_ticks(fluid_player_t *player)
*/
int fluid_player_get_bpm(fluid_player_t *player)
{
return (int)(60e6 / player->miditempo);
return 60000000L / player->miditempo;
}
/**