From 0fcbda951aea462248304a7e16f5c4eb9da9939d Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 10 Mar 2017 10:34:25 +0000 Subject: Finally fix signed integer conversion and printing --- code/demo.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'code') diff --git a/code/demo.odin b/code/demo.odin index 905ae53d8..305638d52 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -9,10 +9,10 @@ #import "sync.odin"; main :: proc() { - x := 2; - y := 3; - z := x+y; - fmt.println(z); + a: i8 = -1; + fmt.println(a, cast(u64)a, cast(i64)a); + b: i64 = -1; + fmt.println(b, cast(u64)b, cast(i64)b); when false { s := new_slice(int, 0, 10); -- cgit v1.2.3