aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-03-10 10:34:25 +0000
committerGinger Bill <bill@gingerbill.org>2017-03-10 10:34:25 +0000
commit0fcbda951aea462248304a7e16f5c4eb9da9939d (patch)
treea15d1460e71d5dd8878d3feba7c23d188ee430f4 /code
parente2734a2dc676d236757801973c6786d3d3e6bbee (diff)
Finally fix signed integer conversion and printing
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin8
1 files changed, 4 insertions, 4 deletions
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);