Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
More parens in pointer alignment calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Sep 8, 2011
1 parent c253036 commit 7511e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/threads.c
Expand Up @@ -40,7 +40,7 @@ static NOINLINE void uv__once_inner(uv_once_t* guard,
HANDLE* event_ptr;

/* Fetch and align event_ptr */
event_ptr = (HANDLE*) ((uintptr_t) &guard->event + (sizeof(HANDLE) - 1) &
event_ptr = (HANDLE*) (((uintptr_t) &guard->event + (sizeof(HANDLE) - 1)) &
~(sizeof(HANDLE) - 1));

created_event = CreateEvent(NULL, 1, 0, NULL);
Expand Down

0 comments on commit 7511e79

Please sign in to comment.