aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/codegen/core/gen_legal_metadata_characters.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/codegen/core/gen_legal_metadata_characters.c')
-rw-r--r--tools/codegen/core/gen_legal_metadata_characters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/codegen/core/gen_legal_metadata_characters.c b/tools/codegen/core/gen_legal_metadata_characters.c
index 0fbc545d8d..2ffda54a21 100644
--- a/tools/codegen/core/gen_legal_metadata_characters.c
+++ b/tools/codegen/core/gen_legal_metadata_characters.c
@@ -41,7 +41,7 @@ static unsigned char legal_bits[256 / 8];
static void legal(int x) {
int byte = x / 8;
int bit = x % 8;
- legal_bits[byte] |= 1 << bit;
+ legal_bits[byte] |= (unsigned char)(1 << bit);
}
static void dump(void) {