Skip to content

Commit 6147753

Browse files
committed
Changed value of useReferenceNumericTypes flag
1 parent f90dacf commit 6147753

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Foundation/NSJSONSerialization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extension JSONSerialization {
2323
public static let mutableContainers = ReadingOptions(rawValue: 1 << 0)
2424
public static let mutableLeaves = ReadingOptions(rawValue: 1 << 1)
2525
public static let allowFragments = ReadingOptions(rawValue: 1 << 2)
26-
internal static let useReferenceNumericTypes = ReadingOptions(rawValue: 1 << 3)
26+
internal static let useReferenceNumericTypes = ReadingOptions(rawValue: 1 << 15)
2727
}
2828

2929
public struct WritingOptions : OptionSet {

TestFoundation/TestNSJSONSerialization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
// Exposing internal ReadingOptions for tests.
2020
extension JSONSerialization.ReadingOptions {
21-
fileprivate static let useReferenceNumericTypes = JSONSerialization.ReadingOptions(rawValue: 1 << 3)
21+
fileprivate static let useReferenceNumericTypes = JSONSerialization.ReadingOptions(rawValue: 1 << 15)
2222
}
2323

2424
class TestNSJSONSerialization : XCTestCase {

0 commit comments

Comments
 (0)