aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygtls.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-08-16 19:24:19 +0000
committerChristopher Faylor <me@cgf.cx>2012-08-16 19:24:19 +0000
commit00caa48b917d9c300c70403b3a9ea665a8f67d26 (patch)
treeed2f7973a5c25ff49542b98396bc5f8e105f65a7 /winsup/cygwin/cygtls.h
parentd01efdbe6ef73e31eca061c031bab84c614a3fe4 (diff)
downloadnewlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.zip
newlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.tar.gz
newlib-00caa48b917d9c300c70403b3a9ea665a8f67d26.tar.bz2
* cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r--winsup/cygwin/cygtls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 98b63ae..d009da1 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -226,7 +226,7 @@ public:
void signal_debugger (int) __attribute__ ((regparm(2)));
#ifdef CYGTLS_HANDLE
- operator HANDLE () const {return tid ? NULL : tid->win32_obj_id;}
+ operator HANDLE () const {return tid ? tid->win32_obj_id : NULL;}
#endif
void set_siginfo (struct sigpacket *) __attribute__ ((regparm (3)));
int call_signal_handler () __attribute__ ((regparm (1)));