diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-05-22 16:55:55 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-05-22 16:55:55 +0000 |
commit | c20a5e603a4b4a30083752145aaad48cb55ab712 (patch) | |
tree | 06367155fc01f74d69bf1df560712c26eb215cd5 /winsup/cygwin/spinlock.h | |
parent | 7dfacd3869cb46ab0755fa1680d51f0e4ad8561b (diff) | |
download | cygnal-c20a5e603a4b4a30083752145aaad48cb55ab712.tar.gz cygnal-c20a5e603a4b4a30083752145aaad48cb55ab712.tar.bz2 cygnal-c20a5e603a4b4a30083752145aaad48cb55ab712.zip |
* spinlock.h (ULONG): Replace LONG operator with ULONG to accommodate
the fact that CURR_SHARED_MAGIC and USER_SHARED_MAGIC are unsigned
values.
* shared.cc (shared_info::initialize): Drop explicit cast here.
Diffstat (limited to 'winsup/cygwin/spinlock.h')
-rw-r--r-- | winsup/cygwin/spinlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spinlock.h b/winsup/cygwin/spinlock.h index b55817245..e43d19c88 100644 --- a/winsup/cygwin/spinlock.h +++ b/winsup/cygwin/spinlock.h @@ -67,7 +67,7 @@ public: } } ~spinlock () {done (setto);} - operator LONG () const {return val;} + operator ULONG () const {return (ULONG) val;} /* FIXME: This should be handled in a more general fashion, probably by establishing a linked list of spinlocks which are freed on process exit. */ void multiple_cygwin_problem (const char *w, unsigned m, unsigned v) |