Skip to content

Commit ed48c06

Browse files
committed
fix: store dynamic value ids as uint32_t
1 parent 77fd289 commit ed48c06

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

yoga/YGValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ YG_EXPORT bool YGFloatIsUndefined(float value);
5858
/**
5959
* Host-defined identifier for a dynamic style value.
6060
*/
61-
typedef uint8_t YGValueDynamicID;
61+
typedef uint32_t YGValueDynamicID;
6262

6363
/**
6464
* Layout context passed to YGValueDynamic for resolving dynamic values.

yoga/style/StyleValuePool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class StyleValuePool {
200200
YGValueDynamicID getDynamicCallbackID(StyleValueHandle handle) const {
201201
assert(handle.isDynamic());
202202
assert(handle.isValueIndexed());
203-
return static_cast<uint8_t>(buffer_.get32(handle.value() + 2));
203+
return buffer_.get32(handle.value() + 2);
204204
}
205205

206206
static constexpr bool isIntegerPackable(float f) {

0 commit comments

Comments
 (0)