UInt8 in the REPL


(KS Sreeram) #1

Hello

In the Swift 2.2 REPL, UInt8(200) is displayed as -56. Is this a known problem? “print” works fine though.

Best
KS Sreeram
http://claylabs.com <http://claylabs.com/>


(Chris Lattner) #2

Hello

In the Swift 2.2 REPL, UInt8(200) is displayed as -56. Is this a known problem? “print” works fine though.

Yep, this is already fixed in Swift 3.

-Chris

···

On Jul 25, 2016, at 2:46 AM, KS Sreeram via swift-users <swift-users@swift.org> wrote:

Best
KS Sreeram
http://claylabs.com <http://claylabs.com/>

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Zhao Xin) #3

You should file a bug on this, but it may be a known issue as Swift 3.0
together with Xcode 8 beta3 has no the same issue.

Zhaoxin

···

On Mon, Jul 25, 2016 at 5:46 PM, KS Sreeram via swift-users < swift-users@swift.org> wrote:

Hello

In the Swift 2.2 REPL, UInt8(200) is displayed as -56. Is this a known
problem? “print” works fine though.

Best
KS Sreeram
http://claylabs.com

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(KS Sreeram) #4

Thanks all.

···

On 26-Jul-2016, at 2:46 AM, Chris Lattner <clattner@apple.com> wrote:

On Jul 25, 2016, at 2:46 AM, KS Sreeram via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

Hello

In the Swift 2.2 REPL, UInt8(200) is displayed as -56. Is this a known problem? “print” works fine though.

Yep, this is already fixed in Swift 3.

-Chris

Best
KS Sreeram
http://claylabs.com <http://claylabs.com/>

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users