diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-07 00:49:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-07 00:49:06 +0100 |
commit | ba74b80e118d8418ab9bf4eb23f32b91763d9dbf (patch) | |
tree | 983ba16622ecd53fe903dad33cec481c9fafde0d | |
parent | mds-kbdc: typo + generate error if a function is used within a function before it has been defined (diff) | |
download | mds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.gz mds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.bz2 mds-ba74b80e118d8418ab9bf4eb23f32b91763d9dbf.tar.xz |
mds-kbdc: m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/mds-kbdc/compile-layout.c | 2 |
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: |