Why is this unsigned? It's a binary flag. It's better to leave things with the simple type unless you are really certain you need the extra range in plus numbers (which you don't need).