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 {
580580
581581#[ rustfmt:: skip]
582582pub mod conversions {
583- const INDEX_MASK : u32 = 4194304 ;
583+ const INDEX_MASK : u32 = 0x400000 ;
584584
585585 pub fn to_lower ( c : char ) -> [ char ; 3 ] {
586586 if c. is_ascii ( ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const INDEX_MASK: u32 = 1 << 22;
1010pub ( crate ) fn generate_case_mapping ( data : & UnicodeData ) -> String {
1111 let mut file = String :: new ( ) ;
1212
13- write ! ( file, "const INDEX_MASK: u32 = { };" , INDEX_MASK ) . unwrap ( ) ;
13+ write ! ( file, "const INDEX_MASK: u32 = 0x{:x };" , INDEX_MASK ) . unwrap ( ) ;
1414 file. push_str ( "\n \n " ) ;
1515 file. push_str ( HEADER . trim_start ( ) ) ;
1616 file. push ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments