mirror of
https://github.com/nlohmann/json.git
synced 2025-08-07 18:02:57 +03:00
🚨 fix warnings #2113
This commit is contained in:
@@ -32,7 +32,7 @@ namespace detail
|
||||
|
||||
@note from https://stackoverflow.com/a/1001328/266378
|
||||
*/
|
||||
static bool little_endianess(int num = 1) noexcept
|
||||
static inline bool little_endianess(int num = 1) noexcept
|
||||
{
|
||||
return *reinterpret_cast<char*>(&num) == 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user