Skip to content

Commit b7634b7

Browse files
committed
Silence signedness change through implicit conversion error
The error pops up when using the rebranch Clang (stable/20250402): ``` /home/build-user/swift-corelibs-libdispatch/src/event/event_epoll.c:92:27: error: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wsign-conversion] 92 | return dmn->dmn_events & ~dmn->dmn_disarmed_events; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~ ```
1 parent 96ac07d commit b7634b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event/event_epoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ DISPATCH_ALWAYS_INLINE
8989
static inline uint32_t
9090
_dispatch_muxnote_armed_events(dispatch_muxnote_t dmn)
9191
{
92-
return dmn->dmn_events & ~dmn->dmn_disarmed_events;
92+
return dmn->dmn_events & ~(uint32_t)(dmn->dmn_disarmed_events);
9393
}
9494

9595
DISPATCH_ALWAYS_INLINE

0 commit comments

Comments
 (0)