Squash more "may be uninitialized" warnings
This commit is contained in:
		
							parent
							
								
									492be508da
								
							
						
					
					
						commit
						e341dca579
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -74,7 +74,7 @@ MRB_METHOD(spriteWidth)
 | 
			
		|||
{
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(mrb, self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getWidth(); )
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(value);
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@ MRB_METHOD(spriteHeight)
 | 
			
		|||
{
 | 
			
		||||
	Sprite *s = getPrivateData<Sprite>(mrb, self);
 | 
			
		||||
 | 
			
		||||
	int value;
 | 
			
		||||
	int value = 0;
 | 
			
		||||
	GUARD_EXC( value = s->getHeight(); )
 | 
			
		||||
 | 
			
		||||
	return mrb_fixnum_value(value);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue