summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-15 00:37:37 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-15 00:37:37 +0000
commit3a3326437d860555f44ba1c366f844a88f9281dc (patch)
tree12e75e874ed69b099b63331a37e5c4b59124f880
parent69ef0a2171e53371961ecaf7b0544c3ccc321e85 (diff)
parent2ddfc05c281623c991753d3c04374e60d9431743 (diff)
downloadminikin-android14-qpr2-release.tar.gz
Change-Id: Icaa5d8de006484f5117c09287e14a16de435d9a8
-rw-r--r--include/minikin/Hasher.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/minikin/Hasher.h b/include/minikin/Hasher.h
index 4e20195..dcfdd0b 100644
--- a/include/minikin/Hasher.h
+++ b/include/minikin/Hasher.h
@@ -58,7 +58,8 @@ public:
}
inline Hasher& update(const std::vector<FontFeature>& features) {
- update(features.size());
+ uint32_t size = features.size();
+ update(size);
for (const FontFeature& feature : features) {
update(feature);
}