diff options
| author | Ian Hattendorf | 2018-04-28 23:23:30 -0700 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-04-29 20:28:35 +0200 |
| commit | 88a6ff0b65b375fcf1c502b2de3f8f360ecff649 (patch) | |
| tree | fdefb1fbed92eda0e897f1f3c92f01cb142e6107 /projects/Benchmark/StringificationBench.cpp | |
| parent | 9e7c281e6eec890e2f53f54fdbf1c8711b7e00b6 (diff) | |
| download | catch3-88a6ff0b65b375fcf1c502b2de3f8f360ecff649.tar.gz | |
Cast to unsigned char when using std::isalnum
std::isalnum expects an int in the range of unsigned char or -1 (EOF),
otherwise it exhibits undefined behavior. Casting from char to unsigned
char avoids this.
MSVC warns about this when compiling with /analyze.
Diffstat (limited to 'projects/Benchmark/StringificationBench.cpp')
0 files changed, 0 insertions, 0 deletions