Use the tilde opperator
Merge pull request #818 from GrahamCampbell/patch-2

Use the tilde opperator