mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-03 09:14:38 +00:00
Finally fix signed integer conversion and printing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user