Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. std::tolower() returns an `int` value. Implicit converting an `int` to a `char` may trigger compiler warnings (-Wconversion on gcc and clang). This change adds an explicit cast to suppress the implicit conversion warnings. 2. Previously we used `assert(!"....")` to show error messages. This does an implicit conversion from `const char*` to `bool` which triggers compiler warnings (-Wconversion). This change replaces it with `assert(false && "...")` which doesn't trigger the warning. Bug: https://fxbug.dev/378964821 Change-Id: I51be6858db558568619d0d2e6bc01a544d3459e4
- Loading branch information