about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/uv_link_t.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c
index 3df5264..696dd15 100644
--- a/src/uv_link_t.c
+++ b/src/uv_link_t.c
@@ -4,8 +4,8 @@
 #include "src/common.h"
 
 static const size_t kErrorPrefixShift = 16;
-static const int kErrorValueMask = (1 << kErrorPrefixShift) - 1;
-static const unsigned int kErrorPrefixMask = ~kErrorValueMask;
+static const int kErrorValueMask = (1 << 16) - 1;
+static const unsigned int kErrorPrefixMask = ~((1 << 16) - 1);
 
 static void uv_link_maybe_close(uv_link_t* link);