Fix not-reachable warning.
Fix missing cast to LONG.
Merge pull request #28 from MrSmith33/master

Add missing cast, fix warning.