Use unsigned when creating bitmasks in macros