diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 19:39:41 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 19:42:38 -0800 |
commit | 6bde2ed8806b3e53657d46b61ee79d7afe5c2e13 (patch) | |
tree | 116b747e03890c86b964ce3f50c9cc1e74aba912 /asm/error.c | |
parent | 9f89eb38fc0e7566b8a35408b36d7c900ab5d046 (diff) | |
download | nasm-6bde2ed8806b3e53657d46b61ee79d7afe5c2e13.tar.gz |
errors: change the severity parameter from "int" to "errflags"
Change the severity parameter to the error function from "int" to an
unsigned typedef, currently uint32_t.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'asm/error.c')
-rw-r--r-- | asm/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/error.c b/asm/error.c index fa8d2d62..2a0b34ad 100644 --- a/asm/error.c +++ b/asm/error.c @@ -95,13 +95,13 @@ vefunc nasm_verror; nasm_verror((s), fmt, ap); \ va_end(ap); -void nasm_error(int severity, const char *fmt, ...) +void nasm_error(errflags severity, const char *fmt, ...) { nasm_do_error(severity); } #define nasm_err_helpers(_type, _name, _sev) \ -_type nasm_ ## _name ## f (int flags, const char *fmt, ...) \ +_type nasm_ ## _name ## f (errflags flags, const char *fmt, ...) \ { \ nasm_do_error((_sev)|flags); \ if (_sev >= ERR_FATAL) \ |