From: Lisandro Dalcin Date: Wed, 14 Jul 2010 02:46:57 +0000 (-0300) Subject: silent spurious MSVC performance warning about C++ int->bool in testcase X-Git-Tag: 0.13.beta0~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cedf8a446033610fd2feed842f86bfcb316e25f7;p=cython.git silent spurious MSVC performance warning about C++ int->bool in testcase --- diff --git a/tests/run/cpp_nonstdint.h b/tests/run/cpp_nonstdint.h index 480115ae..12c4960a 100644 --- a/tests/run/cpp_nonstdint.h +++ b/tests/run/cpp_nonstdint.h @@ -45,7 +45,8 @@ class Integral { private: static bool is_le() { int one = 1; - return (int)*(unsigned char *)&one; + int b = (int)*(unsigned char *)&one; + return b ? true : false; } static unsigned int lsb() { return is_le() ? 0 : N-1;