File tree 2 files changed +3
-2
lines changed
stdlib/public/RuntimeModule 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ need to be stored in CIF data:
106
106
| 8 | ` /System/Applications ` |
107
107
| 9 | ` /Applications ` |
108
108
| 10 | ` C:\Windows\System32 ` |
109
- | 11 | ` C:\Program Files\ ` |
109
+ | 11 | ` C:\Program Files ` |
110
110
111
111
Codes below 32 are reserved for future expansion of the fixed list.
112
112
Original file line number Diff line number Diff line change @@ -244,14 +244,15 @@ public enum CompactImageMapFormat {
244
244
if ( byte & 0x40 ) == 0 {
245
245
code = Int ( byte & 0x3f )
246
246
} else {
247
- let byteCount = Int ( byte & 0x3f )
247
+ let byteCount = Int ( byte & 0x3f ) + 1
248
248
code = 0
249
249
for _ in 0 ..< byteCount {
250
250
guard let byte = iterator. next ( ) else {
251
251
return nil
252
252
}
253
253
code = ( code << 8 ) | Int ( byte)
254
254
}
255
+ code += 64
255
256
}
256
257
257
258
#if DEBUG_COMPACT_IMAGE_MAP
You can’t perform that action at this time.
0 commit comments