first. This is necessary to avoid warnings with -fshort-enums. Casting
to an int really should be enough, but turns out not to be.
This change will be documented in doc/HACKS.
- Fix a bug in ns_parserr(), where it was returning the wrong sort
of result code in some cases.
This is required to allow some -fshort-enums warnings to be fixed.