summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winsup.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 91634dc13..7f0377ef8 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -124,7 +124,7 @@ extern int cygserver_running;
/* Used to define status flag accessor methods */
#define IMPLEMENT_STATUS_FLAG(type,flag) \
- void flag (type val) { status.flag = (val); } \
+ type flag (type val) { return (type) (status.flag = (val)); } \
type flag () const { return (type) status.flag; }
/* Used when treating / and \ as equivalent. */