Squash more "may be uninitialized" warnings
This commit is contained in:
parent
492be508da
commit
e341dca579
|
@ -74,7 +74,7 @@ MRB_METHOD(spriteWidth)
|
||||||
{
|
{
|
||||||
Sprite *s = getPrivateData<Sprite>(mrb, self);
|
Sprite *s = getPrivateData<Sprite>(mrb, self);
|
||||||
|
|
||||||
int value;
|
int value = 0;
|
||||||
GUARD_EXC( value = s->getWidth(); )
|
GUARD_EXC( value = s->getWidth(); )
|
||||||
|
|
||||||
return mrb_fixnum_value(value);
|
return mrb_fixnum_value(value);
|
||||||
|
@ -84,7 +84,7 @@ MRB_METHOD(spriteHeight)
|
||||||
{
|
{
|
||||||
Sprite *s = getPrivateData<Sprite>(mrb, self);
|
Sprite *s = getPrivateData<Sprite>(mrb, self);
|
||||||
|
|
||||||
int value;
|
int value = 0;
|
||||||
GUARD_EXC( value = s->getHeight(); )
|
GUARD_EXC( value = s->getHeight(); )
|
||||||
|
|
||||||
return mrb_fixnum_value(value);
|
return mrb_fixnum_value(value);
|
||||||
|
|
Loading…
Reference in New Issue