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>
This commit is contained in:
parent
d39760cabf
commit
bc5db9b080
|
@ -93,7 +93,7 @@ struct VORG
|
||||||
unsigned int size = VertOriginMetric::static_size * subset_metrics.len;
|
unsigned int size = VertOriginMetric::static_size * subset_metrics.len;
|
||||||
VertOriginMetric *metrics = c.allocate_size<VertOriginMetric> (size);
|
VertOriginMetric *metrics = c.allocate_size<VertOriginMetric> (size);
|
||||||
if (likely (metrics != nullptr))
|
if (likely (metrics != nullptr))
|
||||||
memcpy (metrics, &subset_metrics[0], size);
|
memcpy (metrics, &subset_metrics[0u], size);
|
||||||
else
|
else
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue