summaryrefslogtreecommitdiff
path: root/src/hb-ot-vorg-table.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-30 16:04:52 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-11-30 16:04:52 -0500
commitbc5db9b0807767ac04d6e50070d69cb9c520f06e (patch)
treeb433ac08130bbf6804c7b629f7ccb2adde2c7b5a /src/hb-ot-vorg-table.hh
parentd39760cabfe4007cefdfc45231e85e93fababac2 (diff)
downloadharfbuzz-bc5db9b0807767ac04d6e50070d69cb9c520f06e.tar.gz
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>
Diffstat (limited to 'src/hb-ot-vorg-table.hh')
-rw-r--r--src/hb-ot-vorg-table.hh2
1 files changed, 1 insertions, 1 deletions
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;
}