Fixed compiler warning

Closes https://github.com/PistonDevelopers/sprite/issues/18