Make never change value static and const
This commit is contained in:
parent
7530bf9246
commit
dd21e8fa1d
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
bool is_little_endian() {
|
bool is_little_endian() {
|
||||||
std::uint32_t v = 1;
|
static const std::uint32_t v = 1;
|
||||||
return (*reinterpret_cast<std::uint8_t*>(&v) == 1);
|
return (*reinterpret_cast<const std::uint8_t*>(&v) == 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue