File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/tools/unicode-table-generator/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ pub mod white_space {
580
580
581
581
#[ rustfmt:: skip]
582
582
pub mod conversions {
583
- const INDEX_MASK : u32 = 4194304 ;
583
+ const INDEX_MASK : u32 = 0x400000 ;
584
584
585
585
pub fn to_lower ( c : char ) -> [ char ; 3 ] {
586
586
if c. is_ascii ( ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const INDEX_MASK: u32 = 1 << 22;
10
10
pub ( crate ) fn generate_case_mapping ( data : & UnicodeData ) -> String {
11
11
let mut file = String :: new ( ) ;
12
12
13
- write ! ( file, "const INDEX_MASK: u32 = { };" , INDEX_MASK ) . unwrap ( ) ;
13
+ write ! ( file, "const INDEX_MASK: u32 = 0x{:x };" , INDEX_MASK ) . unwrap ( ) ;
14
14
file. push_str ( "\n \n " ) ;
15
15
file. push_str ( HEADER . trim_start ( ) ) ;
16
16
file. push ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments