Commit 62a0e91
src: simplify UnionBytes
Before this commit it was using a tagged union to store the one-byte and
two-byte pointers.
From a `sizeof(UnionBytes)` perspective that makes no difference - there
is a hole between the tag and the union - and it makes the code just a
little harder to reason about, IMO.
PR-URL: #29116
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent edbe38d commit 62a0e91Copy full SHA for 62a0e91
File tree
Expand file treeCollapse file tree
1 file changed
+8
-15
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+8
-15
lines changedOpen diff view settings
Collapse file
+8-15Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
59 | 59 | |
60 | 60 | |
61 | 61 | |
62 | | - |
| 62 | + |
63 | 63 | |
64 | | - |
| 64 | + |
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | 68 | |
69 | 69 | |
70 | 70 | |
71 | | - |
| 71 | + |
72 | 72 | |
73 | | - |
74 | 73 | |
75 | 74 | |
76 | 75 | |
77 | 76 | |
78 | | - |
79 | 77 | |
80 | 78 | |
81 | 79 | |
82 | 80 | |
83 | | - |
84 | | - |
| 81 | + |
85 | 82 | |
86 | | - |
| 83 | + |
87 | 84 | |
88 | 85 | |
89 | | - |
90 | 86 | |
91 | | - |
| 87 | + |
92 | 88 | |
93 | 89 | |
94 | 90 | |
95 | 91 | |
96 | 92 | |
97 | 93 | |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
| 94 | + |
| 95 | + |
103 | 96 | |
104 | 97 | |
105 | 98 | |
|
0 commit comments