diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-13 01:31:49 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-13 01:49:22 +0200 |
commit | a9224ebee3b6458dee42d76ec76b1a704e206107 (patch) | |
tree | 5582c794f37cd092a987ce8dc9ae49723d46a1a0 /src/cmdline.c | |
parent | c2057ebf7e2a34eccd615a7d88085e247e5b9e9f (diff) | |
download | sciteco-a9224ebee3b6458dee42d76ec76b1a704e206107.tar.gz |
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.
Diffstat (limited to 'src/cmdline.c')
-rw-r--r-- | src/cmdline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdline.c b/src/cmdline.c index e402124..0d32513 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -87,7 +87,7 @@ teco_cmdline_insert(const gchar *data, gsize len, GError **error) { const teco_string_t src = {(gchar *)data, len}; teco_string_t old_cmdline = {NULL, 0}; - guint repl_pc = 0; + gsize repl_pc = 0; teco_cmdline.machine.macro_pc = teco_cmdline.pc = teco_cmdline.effective_len; |