mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Coverity: Restore output stream format
This commit is contained in:
parent
10cda4cc33
commit
39886a0968
@ -72,8 +72,10 @@ void describeChar(ostream &os, char c, enum cc_output_t out_type) {
|
|||||||
} else if (c == 0x0d) {
|
} else if (c == 0x0d) {
|
||||||
os << backslash << 'r';
|
os << backslash << 'r';
|
||||||
} else {
|
} else {
|
||||||
|
auto fmt(os.flags());
|
||||||
os << backslash << 'x' << std::hex << std::setw(2)
|
os << backslash << 'x' << std::hex << std::setw(2)
|
||||||
<< std::setfill('0') << (unsigned)(c & 0xff) << std::dec;
|
<< std::setfill('0') << (unsigned)(c & 0xff);
|
||||||
|
os.flags(fmt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user