Fix dynamic_bitset implementation

This commit is contained in:
topjohnwu
2022-01-23 04:39:00 -08:00
parent 407dfc7547
commit cbe97cdfde
3 changed files with 15 additions and 13 deletions

View File

@@ -505,7 +505,7 @@ void HookContext::nativeForkSystemServer_pre() {
}
write_int(fd, bits.slots());
for (int i = 0; i < bits.slots(); ++i) {
unsigned long l = bits.to_ulong(i);
auto l = bits.get_slot(i);
xwrite(fd, &l, sizeof(l));
}
}