From f0ea3ac17bef98409d302b9f285e94015e069823 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 1 Apr 2019 21:36:03 -0700 Subject: [PATCH] [serialize] Fix linking --- src/hb-serialize.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 0bd9f03..a0b9228 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -260,13 +260,13 @@ struct hb_serialize_context_t if (link.is_wide) { - auto &off = * ((BEInt *) (parent.head + offset)); + auto &off = * ((BEInt *) (parent.head + link.position)); off = offset; propagate_error (off == offset); } else { - auto &off = * ((BEInt *) (parent.head + offset)); + auto &off = * ((BEInt *) (parent.head + link.position)); off = offset; propagate_error (off == offset); } -- 2.7.4