Fix warning by casting long to int
Merge pull request #60 from spotify/dxia/fix-warning

Fix warning by casting long to int