diff options
Diffstat (limited to 'liblss16_encode_strerror.c')
-rw-r--r-- | liblss16_encode_strerror.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/liblss16_encode_strerror.c b/liblss16_encode_strerror.c index a5fcd49..e4d1ab9 100644 --- a/liblss16_encode_strerror.c +++ b/liblss16_encode_strerror.c @@ -5,16 +5,13 @@ const char * liblss16_encode_strerror(enum liblss16_encode_error error) { - switch (error) { + switch ((int)error) { case LIBLSS16_ENCODE_BAD_IMAGE_SIZE: return "Unencodable image: unsupported image size"; case LIBLSS16_ENCODE_BAD_COLOUR: return "Invalid colour map: 6-bit colours encoded with additional bits"; - case LIBLSS16_ENCODE_BAD_COLOUR_INDEX: - return "Invalid image: colour index out of range"; - default: return "Unrecognised error"; } |