[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Fri Nov 30 21:05:12 UTC 2018
src/hb-ot-vorg-table.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bc5db9b0807767ac04d6e50070d69cb9c520f06e
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Fri Nov 30 16:04:52 2018 -0500
One more....
hb-ot-vorg-table.hh:96: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
hb-vector.hh:87: note: candidate 1: const Type& hb_vector_t<Type, PreallocedCount>::operator[](unsigned int) const [with Type = OT::VertOriginMetric, unsigned int PreallocedCount = 8u]
hb-ot-vorg-table.hh:96: note: candidate 2: operator[](const T*, int) <built-in>
diff --git a/src/hb-ot-vorg-table.hh b/src/hb-ot-vorg-table.hh
index f724fe04..e8dcc503 100644
--- a/src/hb-ot-vorg-table.hh
+++ b/src/hb-ot-vorg-table.hh
@@ -93,7 +93,7 @@ struct VORG
unsigned int size = VertOriginMetric::static_size * subset_metrics.len;
VertOriginMetric *metrics = c.allocate_size<VertOriginMetric> (size);
if (likely (metrics != nullptr))
- memcpy (metrics, &subset_metrics[0], size);
+ memcpy (metrics, &subset_metrics[0u], size);
else
success = false;
}
More information about the HarfBuzz
mailing list