~sircmpwn/hare-dev

harec: gen: fix assertion failure when using uintptr enums in globals v1 APPLIED

Alexey Yerin: 1
 gen: fix assertion failure when using uintptr enums in globals

 1 files changed, 1 insertions(+), 0 deletions(-)
#787092 alpine.yml success
#787093 freebsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/33256/mbox | git am -3
Learn more about email & git

[PATCH harec] gen: fix assertion failure when using uintptr enums in globals Export this patch

Signed-off-by: Alexey Yerin <yyp@disroot.org>
---
 src/gen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gen.c b/src/gen.c
index d26e43e..38bfe90 100644
--- a/src/gen.c
+++ b/src/gen.c
@@ -3544,6 +3544,7 @@ gen_data_item(struct gen_context *ctx, struct expression *expr,
		case STORAGE_U64:
		case STORAGE_I64:
		case STORAGE_SIZE:
		case STORAGE_UINTPTR:
			item->type = QD_VALUE;
			item->value = constl((uint64_t)constant->uval);
			break;
-- 
2.36.1
harec/patches: SUCCESS in 48s

[gen: fix assertion failure when using uintptr enums in globals][0] from [Alexey Yerin][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/33256
[1]: mailto:yyp@disroot.org

✓ #787092 SUCCESS harec/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/787092
✓ #787093 SUCCESS harec/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/787093
Thanks!

To git@git.sr.ht:~sircmpwn/harec
   65ba9fe..53f2eb1  master -> master