projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50f3241
)
silent spurious MSVC performance warning about C++ int->bool in testcase
author
Lisandro Dalcin
<dalcinl@gmail.com>
Wed, 14 Jul 2010 02:46:57 +0000
(23:46 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Wed, 14 Jul 2010 02:46:57 +0000
(23:46 -0300)
tests/run/cpp_nonstdint.h
patch
|
blob
|
history
diff --git
a/tests/run/cpp_nonstdint.h
b/tests/run/cpp_nonstdint.h
index 480115aef22e767af178b306f8d81e5ee7dca640..12c4960a376ce61bfaf134f1c963945d445b9d91 100644
(file)
--- 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;