Skip to content

Commit

Permalink
Merge pull request #25 from kavika13/patch-1
Browse files Browse the repository at this point in the history
Fix C4703 (uninitialized variable) on MSVC 2015
  • Loading branch information
schellingb committed Oct 11, 2018
2 parents 347c18f + 6f9a3a0 commit 7e646b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ TSFDEF void tsf_channel_note_on(tsf* f, int channel, int key, float vel)

TSFDEF void tsf_channel_note_off(tsf* f, int channel, int key)
{
struct tsf_voice *v = f->voices, *vEnd = v + f->voiceNum, *vMatchFirst = TSF_NULL, *vMatchLast;
struct tsf_voice *v = f->voices, *vEnd = v + f->voiceNum, *vMatchFirst = TSF_NULL, *vMatchLast = TSF_NULL;
for (; v != vEnd; v++)
{
//Find the first and last entry in the voices list with matching channel, key and look up the smallest play index
Expand Down

0 comments on commit 7e646b6

Please sign in to comment.