Prepare compilation for NDK r21

This commit is contained in:
topjohnwu
2020-04-03 02:58:39 -07:00
parent 2742edd73f
commit 2f1f68f12f
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ prop_info::prop_info(const char* name, uint32_t namelen, uint32_t long_offset) {
memcpy(this->name, name, namelen);
this->name[namelen] = '\0';
auto error_value_len = sizeof(kLongLegacyError) - 1;
atomic_uint_least32_t error_value_len = sizeof(kLongLegacyError) - 1;
atomic_init(&this->serial, error_value_len << 24 | kLongFlag);
memcpy(this->long_property.error_message, kLongLegacyError, sizeof(kLongLegacyError));