diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2020-09-12 00:52:44 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2020-09-12 00:52:44 +0100 |
commit | 2661c26164b52be7c029eb735f6932d17054fc62 (patch) | |
tree | 194844e5b60e62a96609d2c95e13847225c2eb04 | |
parent | 6fc69c5d349b2954fdd0d241d1f3d0836676e557 (diff) | |
download | pack-2661c26164b52be7c029eb735f6932d17054fc62.tar.gz pack-2661c26164b52be7c029eb735f6932d17054fc62.tar.xz pack-2661c26164b52be7c029eb735f6932d17054fc62.zip |
unpack: Fix default case mistake
-rw-r--r-- | unpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ enum pack_status unpack(const void *buf_, size_t size, const char *fmt, ...) case 'f': arg.f = va_arg(ap, float *); break; case 'd': arg.d = va_arg(ap, double *); break; case 'x': break; - return PACK_FMTINVAL; + default: return PACK_FMTINVAL; } s = getsize(fmt[i]); |