fixed a bug where certain error codes were wrongly treated as unsigned i...

...ntegers