Put the key number of the json_view index test in parentheses
astyle formatted i * step after << as a pointer declaration (i* step), which failed the amalgamation check. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 file changed
+1
-1
@@ -648,7 +648,7 @@ TEST_CASE("json_view large objects")
|
|||||||
{
|
{
|
||||||
std::ostringstream key;
|
std::ostringstream key;
|
||||||
key << pattern.substr(0, percent) << std::setfill('0') << std::setw(static_cast<int>(width))
|
key << pattern.substr(0, percent) << std::setfill('0') << std::setw(static_cast<int>(width))
|
||||||
<< (hex ? std::hex : std::dec) << i * step << pattern.substr(conversion + 1);
|
<< (hex ? std::hex : std::dec) << (i * step) << pattern.substr(conversion + 1);
|
||||||
keys.push_back(key.str());
|
keys.push_back(key.str());
|
||||||
}
|
}
|
||||||
return keys;
|
return keys;
|
||||||
|
|||||||
Reference in new issue
Block a user