Breaking: size_t indices #1366
Reference in New Issue
Block a user
No description provided.
Delete Branch "export-D49130914"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
Yoga's public API exposes indices most often as
uint32_t
, with exception of clone callbacks which areint32_t
. Yoga internally represents these indices assize_t
when dealing with the child vector, and this is the true index.This changes the API to consistently be
size_t
. This should not be breaking for most users, but will cause breaks where:YGNodeGetChildCount()
are assigning to an int with less width thansize_t
and have strong warnings enabled.Changelog: [Internal]
Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request was exported from Phabricator. Differential Revision: D49130914
This pull request has been merged in facebook/yoga@776065d7c7.
Pull request closed