mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
Remove a magic number (#3888)
This commit is contained in:
@ -927,7 +927,7 @@ class serializer
|
|||||||
: (0xFFu >> type) & (byte);
|
: (0xFFu >> type) & (byte);
|
||||||
|
|
||||||
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
|
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
|
||||||
JSON_ASSERT(index < 400);
|
JSON_ASSERT(index < utf8d.size());
|
||||||
state = utf8d[index];
|
state = utf8d[index];
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
@ -18849,7 +18849,7 @@ class serializer
|
|||||||
: (0xFFu >> type) & (byte);
|
: (0xFFu >> type) & (byte);
|
||||||
|
|
||||||
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
|
const std::size_t index = 256u + static_cast<size_t>(state) * 16u + static_cast<size_t>(type);
|
||||||
JSON_ASSERT(index < 400);
|
JSON_ASSERT(index < utf8d.size());
|
||||||
state = utf8d[index];
|
state = utf8d[index];
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user