We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1750d7f + b61a070 commit 1456474Copy full SHA for 1456474
1 file changed
libs/binder/include/binder/Parcel.h
@@ -1240,7 +1240,7 @@ class Parcel {
1240
if (__builtin_mul_overflow(size, sizeof(T), &dataLen)) {
1241
return -EOVERFLOW;
1242
}
1243
- auto data = reinterpret_cast<const T*>(readInplace(dataLen));
+ auto data = readInplace(dataLen);
1244
if (data == nullptr) return BAD_VALUE;
1245
// std::vector::insert and similar methods will require type-dependent
1246
// byte alignment when inserting from a const iterator such as `data`,
0 commit comments