Clang 10's -Wimplicit-int-float-conversion complains that MAX = 2147483647 cannot be exactly represented as a float. Use an explicit conversion to suppress the warning locally. Note that this value's usage to produce a random boolean doesn't critically depend on exact conversion. Bug: b/152777669 Change-Id: I1136ca16dcb842b97f4a76a6ed3e1c3333e814f8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/51488Tested-by:Nicolas Capens <nicolascapens@google.com> Commit-Queue: Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| bloat | Loading commit data... | |
| crosstest | Loading commit data... | |
| docs | Loading commit data... | |
| pnacl-llvm | Loading commit data... | |
| runtime | Loading commit data... | |
| src | Loading commit data... | |
| unittest | Loading commit data... | |
| .clang-format | Loading commit data... | |
| .dir-locals.el | Loading commit data... | |
| .gitignore | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| DESIGN.rst | Loading commit data... | |
| LICENSE.TXT | Loading commit data... | |
| Makefile | Loading commit data... | |
| OWNERS | Loading commit data... | |
| README-wasm.md | Loading commit data... | |
| README.rst | Loading commit data... | |
| c2wasm-exe.sh | Loading commit data... | |
| codereview.settings | Loading commit data... | |
| fetch-torture-tests.sh | Loading commit data... |