invert overflow fix
Merge pull request #230 from rmcgibbo/master

Overflow on invert