Use hex literal for INDEX_MASK
This commit is contained in:
parent
355e1dda1d
commit
54f55efb9a
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ const INDEX_MASK: u32 = 1 << 22;
|
|||
pub(crate) fn generate_case_mapping(data: &UnicodeData) -> String {
|
||||
let mut file = String::new();
|
||||
|
||||
write!(file, "const INDEX_MASK: u32 = {};", INDEX_MASK).unwrap();
|
||||
write!(file, "const INDEX_MASK: u32 = 0x{:x};", INDEX_MASK).unwrap();
|
||||
file.push_str("\n\n");
|
||||
file.push_str(HEADER.trim_start());
|
||||
file.push('\n');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue