diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-11-06 11:09:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-11-06 11:09:14 -0500 |
| commit | 63f636e7b775bc8d2881104248f9579a089c4240 (patch) | |
| tree | 25e7432ccd228f0507aa3cb8665ad66762e29db6 /src/error.cpp | |
| parent | a08b65720b7a6b78ff59b36fff1b3a6910483609 (diff) | |
| download | zig-63f636e7b775bc8d2881104248f9579a089c4240.tar.gz zig-63f636e7b775bc8d2881104248f9579a089c4240.zip | |
limit integer types to maximum bit width of 65535
closes #1541
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.cpp b/src/error.cpp index 7a9bd963bb..d0575a8494 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -7,8 +7,8 @@ #include "error.hpp" -const char *err_str(int err) { - switch ((enum Error)err) { +const char *err_str(Error err) { + switch (err) { case ErrorNone: return "(no error)"; case ErrorNoMem: return "out of memory"; case ErrorInvalidFormat: return "invalid format"; @@ -32,6 +32,7 @@ const char *err_str(int err) { case ErrorUnsupportedOperatingSystem: return "unsupported operating system"; case ErrorSharingViolation: return "sharing violation"; case ErrorPipeBusy: return "pipe busy"; + case ErrorPrimitiveTypeNotFound: return "primitive type not found"; } return "(invalid error)"; } |
