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

Skip to content
Commit 96aed5f8 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Specify type when calling ConsumeIntegralInRange

This fixes the following build error on git_master-without-vendor:

LatencyTrackerFuzzer.cpp:43:27: error: no matching member function for call to 'ConsumeIntegralInRange'
        return tokens[fdp.ConsumeIntegralInRange(0ul, tokens.size() - 1)];
                      ~~~~^~~~~~~~~~~~~~~~~~~~~~
prebuilts/clang/host/linux-x86/clang-r416183b1/lib64/clang/12.0.7/include/fuzzer/FuzzedDataProvider.h:203:23: note: candidate template ignored: deduced conflicting types for paramete
r 'T' ('unsigned long' vs. 'unsigned int')
T FuzzedDataProvider::ConsumeIntegralInRange(T min, T max) {
                      ^
1 error generated.

The issue can be reproduced on git_master by lunching to aosp_x86-eng
build target.

Test: lunch aosp_x86-eng && m inputflinger_latencytracker_fuzzer
Bug: none
Change-Id: I185438c8440b6d547222a3c9872d33a71c9ac2c7
parent 3a2b9cc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment