The Fuchsia build compiles the libc and test code with lots
of warnings enabled, including all the integer conversion warnings.
There was some sloppy type usage here that triggered some of those.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/stdlib/strtol_test.cpp | ||
---|---|---|
164 | If you're changing the types of base and the digits then you also have to add a cast to the appropriate type on each of the ASSERT_EQs in the loops, since if the base types are int then the resulting type will also be int, which won't match the type of the output of the functions. |
If you're changing the types of base and the digits then you also have to add a cast to the appropriate type on each of the ASSERT_EQs in the loops, since if the base types are int then the resulting type will also be int, which won't match the type of the output of the functions.