diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-17 20:27:14 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-17 20:27:14 +0000 |
| commit | 367d307dc48fb4ee6815141d2f22b69a0996eb66 (patch) | |
| tree | 18257783e6bfa64d2b9982510bf2262d03948dab /code | |
| parent | cb59c1cf0805166d8b3230fea47d8674dacf157a (diff) | |
Fix conversion of untyped integers to pointers
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin index 1602450a1..83d9f09e0 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -5,6 +5,7 @@ #import "mem.odin"; #import "opengl.odin"; #import "os.odin"; +#import win32 "sys/windows.odin"; #import "sync.odin"; #import "utf8.odin"; @@ -16,6 +17,9 @@ main :: proc() { fmt.println("rawptr"); } + THINGI :: 14451; + THINGF :: 14451.1; + a: i32; b: f32; c: rawptr; @@ -35,8 +39,6 @@ main :: proc() { i := f as int; fmt.printf("f64 arg, f=%d\n", i); } - THINGI :: 14451; - THINGF :: 14451.1; foo(); foo(THINGI as int); |