aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/compile-layout.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-07 00:49:06 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-07 00:49:06 +0100
commitba74b80e118d8418ab9bf4eb23f32b91763d9dbf (patch)
tree983ba16622ecd53fe903dad33cec481c9fafde0d /src/mds-kbdc/compile-layout.c
parentmds-kbdc: typo + generate error if a function is used within a function before it has been defined (diff)
downloadmds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.gz
mds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.bz2
mds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.xz
mds-kbdc: m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc/compile-layout.c')
-rw-r--r--src/mds-kbdc/compile-layout.c2
1 files changed, 1 insertions, 1 deletions
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: