From: Corinna Vinschen Date: Mon, 21 Jan 2013 13:53:03 +0000 (+0000) Subject: Use same fix to silence newer gcc as in 64 bit branch X-Git-Tag: sid-snapshot-20130201~19 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e6e5ab69361d7687df456db65ec057be79934bfa;p=newlib-cygwin.git Use same fix to silence newer gcc as in 64 bit branch --- diff --git a/winsup/cygwin/advapi32.cc b/winsup/cygwin/advapi32.cc index cc961901b..3cf8aea11 100644 --- a/winsup/cygwin/advapi32.cc +++ b/winsup/cygwin/advapi32.cc @@ -42,7 +42,7 @@ DuplicateTokenEx (HANDLE tok, DWORD access, LPSECURITY_ATTRIBUTES sec_attr, { sizeof sqos, level, SECURITY_STATIC_TRACKING, FALSE }; OBJECT_ATTRIBUTES attr = { sizeof attr, NULL, NULL, - (ULONG) ((sec_attr && sec_attr->bInheritHandle) ? OBJ_INHERIT : 0), + (sec_attr && sec_attr->bInheritHandle) ? OBJ_INHERIT : 0U, (sec_attr ? sec_attr->lpSecurityDescriptor : NULL), &sqos }; NTSTATUS status = NtDuplicateToken (tok, access, &attr, FALSE, type, new_tok); DEFAULT_NTSTATUS_TO_BOOL_RETURN