src: fix non-constant value error

This commit is contained in:
Fedor Indutny 2016-06-04 16:05:52 -04:00
parent af170cc9bb
commit b03d9a4c2f
1 changed files with 2 additions and 2 deletions

View File

@ -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);