"array subscript is below array bounds" compilation warning
This commit is contained in:
		@@ -295,6 +295,7 @@ static void channelSfx(tic_mem* memory, s32 index, s32 note, s32 octave, s32 dur
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	c->volume = volume;
 | 
						c->volume = volume;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(index >= 0)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		struct {s8 speed:SFX_SPEED_BITS;} temp = {speed};
 | 
							struct {s8 speed:SFX_SPEED_BITS;} temp = {speed};
 | 
				
			||||||
		c->speed = speed == temp.speed ? speed : machine->soundSrc->sfx.data[index].speed;
 | 
							c->speed = speed == temp.speed ? speed : machine->soundSrc->sfx.data[index].speed;
 | 
				
			||||||
@@ -324,7 +325,6 @@ static void resetMusic(tic_mem* memory)
 | 
				
			|||||||
		musicSfx(memory, -1, 0, 0, 0, c);
 | 
							musicSfx(memory, -1, 0, 0, 0, c);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
static void setMusic(tic_machine* machine, s32 index, s32 frame, s32 row, bool loop)
 | 
					static void setMusic(tic_machine* machine, s32 index, s32 frame, s32 row, bool loop)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	tic_mem* memory = (tic_mem*)machine;
 | 
						tic_mem* memory = (tic_mem*)machine;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user