Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45e46e81 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Specify type when calling ConsumeIntegralInRange" am: c9f73f28 am:...

Merge "Specify type when calling ConsumeIntegralInRange" am: c9f73f28 am: eedaa545 am: 84583feb

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1886185

Change-Id: I9f8c6a969baf5e264b98899018d27153f1c88496
parents b759b98a 84583feb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ static sp<IBinder> getConnectionToken(FuzzedDataProvider& fdp,
                                      std::array<sp<IBinder>, 10>& tokens) {
    const bool useExistingToken = fdp.ConsumeBool();
    if (useExistingToken) {
        return tokens[fdp.ConsumeIntegralInRange(0ul, tokens.size() - 1)];
        return tokens[fdp.ConsumeIntegralInRange<size_t>(0ul, tokens.size() - 1)];
    }
    return new BBinder();
}