Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

More parens in pointer alignment calculation

  • Loading branch information...
piscisaureus committed Sep 8, 2011
1 parent c253036 commit 7511e7962962ae257855e0225da5ba9def7cb92c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/win/threads.c
@@ -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);

0 comments on commit 7511e79

Please sign in to comment.
You can’t perform that action at this time.