commit 0f9f57f9dbe0db242a2ccaef28d4fe0d227cebf1
parent 34a6dd17402e7cfb50df20966a2859309c7bfbf2
Author: Bor Grošelj Simić <bgs@turminal.net>
Date: Sat, 21 May 2022 03:03:02 +0200
scan_enum_field: s/ival/uval/ for unsigned enums
Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/check.c b/src/check.c
@@ -3460,7 +3460,7 @@ scan_enum_field(struct context *ctx, struct incomplete_declaration *idecl)
}
} else {
if (obj == NULL) {
- value->constant.ival = 0;
+ value->constant.uval = 0;
} else {
value->constant.uval = obj->value->constant.uval + 1;
}