Fixed switch error code casting bug
Merge pull request #32 from burci/bug-sysv-errorcode

Fixed switch error code casting bug