Add cast to silence warning when building with -Wconversion
Fix memset size in getPixel()
Merge pull request #9 from davvid/memset-size

Fix memset size in getPixel()