Fixed compiler warning

Closes https://github.com/PistonDevelopers/sprite/issues/18
Merge pull request #22 from bvssvni/master

Fixed compiler warning