Remove header file common/names.h (#4945)

This commit is contained in:
sduzh
2020-11-26 17:00:48 +08:00
committed by GitHub
parent 2682712349
commit 10e1e29711
136 changed files with 937 additions and 941 deletions

View File

@ -366,7 +366,7 @@ StringVal MathFunctions::hex_string(FunctionContext* ctx, const StringVal& s) {
std::stringstream ss;
ss << std::hex << std::uppercase << std::setfill('0');
for (int i = 0; i < s.len; ++i) {
// setw is not sticky. stringstream only converts integral values,
// setw is not sticky. std::stringstream only converts integral values,
// so a cast to int is required, but only convert the least significant byte to hex.
ss << std::setw(2) << (static_cast<int32_t>(s.ptr[i]) & 0xFF);
}