harec

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

commit 6582a2e34285025529ac057a4c773f7b4aef2b0d
parent 85226e92ba954d79e1325669c8855c0ca8459029
Author: Umar Getagazov <umar@handlerug.me>
Date:   Sun,  7 Nov 2021 23:40:54 +0700

typedef: fix a typo in enum member format string

Signed-off-by: Umar Getagazov <umar@handlerug.me>

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

diff --git a/src/typedef.c b/src/typedef.c @@ -296,10 +296,10 @@ emit_type(const struct type *type, FILE *out) ev; ev = ev->next) { fprintf(out, "%s = ", ev->name); if (type_is_signed(type)) { - fprintf(out, "%zu%s", ev->ival, + fprintf(out, "%zd%s", ev->ival, storage_to_suffix(type->_enum.storage)); } else { - fprintf(out, "%zd%s", ev->uval, + fprintf(out, "%zu%s", ev->uval, storage_to_suffix(type->_enum.storage)); } if (ev->next) {