mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 18:02:31 +08:00
Allow any valid int to be loaded as an Option
We assume that this is kosher in FuzzApiCorrectness, so make it kosher This fixes some UBSAN reports
This commit is contained in:
parent
854c94c5ad
commit
3c1ba46cbe
@ -33,7 +33,7 @@ namespace vexillographer
|
||||
outFile.WriteLine("struct FDB{0}s {{", scope.ToString());
|
||||
outFile.WriteLine("\tfriend class FDBOptionInfoMap<FDB{0}s>;",scope.ToString());
|
||||
outFile.WriteLine();
|
||||
outFile.WriteLine("\tenum Option {");
|
||||
outFile.WriteLine("\tenum Option : int {");
|
||||
outFile.WriteLine(string.Join(",\n\n", options.Select(f => c.getCLine(f, "\t\t", "")).ToArray()));
|
||||
outFile.WriteLine("\t};");
|
||||
outFile.WriteLine();
|
||||
|
Loading…
x
Reference in New Issue
Block a user