Bug 13538 - EPOLLET defined as 1<<31 and should be defined as 1U<<31
Summary: EPOLLET defined as 1<<31 and should be defined as 1U<<31
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.12
: P2 minor
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 19:49 UTC by Erez Strauss
Modified: 2014-06-27 11:21 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erez Strauss 2011-12-21 19:49:57 UTC
Please update the definition of the EPOLLET constant to be

(1U<<31)

instead of

(1<<31)

as compilers (intel) are generating the warning:
.... : warning #68: integer conversion resulted in a change of sign
        unsigned m = EPOLLET;
                     ^


The epoll events is defined as unsigned 32 bits.

Thank you.
Comment 1 Ulrich Drepper 2011-12-22 03:15:09 UTC
I checked in a patch.