From e9e15097ffc76cb13279f5832418a605cc745595 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 25 May 2023 14:03:44 -0700 Subject: [PATCH] diff: prefer signed types in context.c * src/context.c (find_function): Prefer idx_t to size_t. --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index c5a60cc..ada40c4 100644 --- a/src/context.c +++ b/src/context.c @@ -492,7 +492,7 @@ find_function (char const * const *linbuf, lin linenum) { /* See if this line is what we want. */ char const *line = linbuf[i]; - size_t linelen = linbuf[i + 1] - line - 1; + idx_t linelen = linbuf[i + 1] - line - 1; /* This line is for documentation; in practice it's equivalent to LEN = LINELEN and no machine code is generated. */