From ba74b80e118d8418ab9bf4eb23f32b91763d9dbf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Dec 2014 00:49:06 +0100 Subject: mds-kbdc: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/compile-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c index 1a31b00..f393511 100644 --- a/src/mds-kbdc/compile-layout.c +++ b/src/mds-kbdc/compile-layout.c @@ -481,7 +481,7 @@ static void check_function_call(const mds_kbdc_tree_t* restrict tree, const char *rc |= 1; NEW_ERROR(tree, ERROR, "function ‘%s/%zu’ has not been defined yet", name, arg_count); error->start = lineoff; - error->end = lineoff + (size_t)(bracket - raw); + error->end = lineoff + (size_t)(*end - raw); return; pfail: -- cgit v1.2.3-70-g09d2