Adds an explicit cast to unsigned long
Merge pull request #2 from brunokoga/master

Adds an explicit cast to unsigned long