Squash more "may be uninitialized" warnings

This commit is contained in:
Jonas Kulla 2014-07-23 17:28:03 +02:00
parent 492be508da
commit e341dca579
1 changed files with 2 additions and 2 deletions

View File

@ -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);