File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ class Program
1414 {
1515 private static readonly Dictionary < string , string > s_wellKnownTypes = new Dictionary < string , string > ( )
1616 {
17- // { "bool", "Bool8" },
1817 { "bool" , "byte" } ,
1918 { "unsigned char" , "byte" } ,
2019 { "char" , "byte" } ,
@@ -305,15 +304,6 @@ static void Main(string[] args)
305304 if ( field . ArraySize != 0 )
306305 {
307306 string addrTarget = s_legalFixedTypes . Contains ( rawType ) ? $ "NativePtr->{ field . Name } " : $ "&NativePtr->{ field . Name } _0";
308-
309- if ( field . Type == "bool" )
310- {
311- // There appear to be codegen bugs on Unix when RangeAccessor<Bool8> is used which result
312- // in values beyond the accessed range becoming corrupted.
313- // Besides, bool is a better type to use in the first place.
314- typeStr = "bool" ;
315- }
316-
317307 writer . WriteLine ( $ "public RangeAccessor<{ typeStr } > { field . Name } => new RangeAccessor<{ typeStr } >({ addrTarget } , { field . ArraySize } );") ;
318308 }
319309 else if ( typeStr . Contains ( "ImVector" ) )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments