Commit cedf8a44 authored by Lisandro Dalcin's avatar Lisandro Dalcin

silent spurious MSVC performance warning about C++ int->bool in testcase

parent 50f32415
...@@ -45,7 +45,8 @@ class Integral { ...@@ -45,7 +45,8 @@ class Integral {
private: private:
static bool is_le() { static bool is_le() {
int one = 1; int one = 1;
return (int)*(unsigned char *)&one; int b = (int)*(unsigned char *)&one;
return b ? true : false;
} }
static unsigned int lsb() { static unsigned int lsb() {
return is_le() ? 0 : N-1; return is_le() ? 0 : N-1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment