harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 517efa50b7ba95c4fa69da354e30ab4e281ec0e2
parent b4023bd56ce37e03904ddafc59dba5b4c5bce8f6
Author: Alexey Yerin <yyp@disroot.org>
Date:   Sat, 30 Oct 2021 23:53:35 +0300

typedef: support STORAGE_CHAR in storage_to_suffix

Fixes an assertion failure when a public interface uses char type.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Msrc/typedef.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/typedef.c b/src/typedef.c @@ -14,6 +14,8 @@ static const char * storage_to_suffix(enum type_storage storage) { switch (storage) { + case STORAGE_CHAR: + return ""; case STORAGE_F32: return "f32"; case STORAGE_F64: