From a9224ebee3b6458dee42d76ec76b1a704e206107 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 13 Sep 2024 01:31:49 +0200 Subject: remaining types of program counters changed to gsize/gssize * This fixes F< to the beginning of the macro, which was broken in 73d574b71a10d4661ada20275cafde75aff6c1ba. teco_machine_main_t::macro_pc actually has to be signed as it is sometimes set to -1. --- src/parser.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 0303bae..7cc286e 100644 --- a/src/parser.h +++ b/src/parser.h @@ -38,7 +38,7 @@ typedef struct { /** how many iterations are left */ teco_int_t counter; /** Program counter of loop start command */ - guint pc : sizeof(guint)*8 - 1; + gsize pc : sizeof(gsize)*8 - 1; /** * Whether the loop represents an argument * barrier or not (it "passes through" @@ -432,7 +432,8 @@ typedef enum { struct teco_machine_main_t { teco_machine_t parent; - gsize macro_pc; + /* signed because it is sometimes set to -1 for flow control */ + gssize macro_pc; /** * Aliases bitfield with an integer. -- cgit v1.2.3