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

Commit 84583feb authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

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

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