File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
stdlib/public/RuntimeModule Expand file tree Collapse file tree 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:
106106| 8 | ` /System/Applications ` |
107107| 9 | ` /Applications ` |
108108| 10 | ` C:\Windows\System32 ` |
109- | 11 | ` C:\Program Files\ ` |
109+ | 11 | ` C:\Program Files ` |
110110
111111Codes below 32 are reserved for future expansion of the fixed list.
112112
Original file line number Diff line number Diff line change @@ -244,14 +244,15 @@ public enum CompactImageMapFormat {
244244 if ( byte & 0x40 ) == 0 {
245245 code = Int ( byte & 0x3f )
246246 } else {
247- let byteCount = Int ( byte & 0x3f )
247+ let byteCount = Int ( byte & 0x3f ) + 1
248248 code = 0
249249 for _ in 0 ..< byteCount {
250250 guard let byte = iterator. next ( ) else {
251251 return nil
252252 }
253253 code = ( code << 8 ) | Int ( byte)
254254 }
255+ code += 64
255256 }
256257
257258 #if DEBUG_COMPACT_IMAGE_MAP
You can’t perform that action at this time.
0 commit comments